-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
120 lines (96 loc) · 2.77 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
NULL =
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
$(FUSE_CFLAGS) \
-DLIBEXECDIR=\"$(libexecdir)\" \
-DBINDIR=\"$(bindir)\" \
-DLIBDIR=\"$(libdir)\" \
$(NULL)
bin_PROGRAMS = \
glick-session \
glick-mkbundle \
glick-runner \
glick-fs \
$(NULL)
libexec_PROGRAMS = \
glick-helper \
$(NULL)
glick_helper_SOURCES = helper.c
glick_helper_LDADD = $(GLIB_LIBS)
glick_session_SOURCES = session.c
glick_runner_SOURCES = runner.c format.h glick.h
glick_runner_LDADD = $(GLIB_LIBS) $(FUSE_LIBS)
glick_fs_SOURCES = fs.c format.h glick.h
glick_fs_LDADD = $(GIO_LIBS) $(FUSE_LIBS)
glick_mkbundle_SOURCES = mkbundle.c format.h
glick_mkbundle_LDADD = $(GIO_LIBS)
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(BUNDLE_PREFIX)
$(mkinstalldirs) $(DESTDIR)$(SESSION_PREFIX)
if SETUID_INSTALL
install-exec-hook:
chown root $(DESTDIR)$(libexecdir)/glick-helper
chmod 4755 $(DESTDIR)$(libexecdir)/glick-helper
chown root $(DESTDIR)$(bindir)/glick-session
chmod 4755 $(DESTDIR)$(bindir)/glick-session
endif
ChangeLog:
$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
(GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
&& mv -f $@.tmp $@ \
|| ($(RM) $@.tmp; \
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
(test -f $@ || echo git-log is required to generate this file >> $@)); \
else \
test -f $@ || \
(echo A git checkout and git-log is required to generate ChangeLog >&2 && \
echo A git checkout and git-log is required to generate this file >> $@); \
fi
mimedir = $(datadir)/mime/packages
mime_DATA = glick2.xml
UPDATE_MIME = \
if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
if which update-mime-database>/dev/null 2>&1; then \
update-mime-database $(DESTDIR)$(datadir)/mime; \
fi \
fi
install-data-hook:
if UPDATE_CACHES
$(UPDATE_MIME)
else
@true
endif
uninstall-hook:
if UPDATE_CACHES
$(UPDATE_MIME)
else
@true
endif
edit = sed \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|@prefix[@]|$(prefix)|g'
binfmtdir = ${sysconfdir}/binfmt.d
binfmt_DATA = glick2.conf
# Binfmt config file
glick2.conf: Makefile glick2.conf.in
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
mv $@.tmp $@
# Autostart file
desktopdir = $(sysconfdir)/xdg/autostart
desktop_DATA = glick.desktop
glick.desktop: Makefile glick.desktop.in
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
mv $@.tmp $@
EXTRA_DIST=glick2.conf.in glick.desktop.in glick2.xml glick2.spec
DISTCHECK_CONFIGURE_FLAGS=--disable-setuid-install
CLEANFILES=glick2.conf glick.desktop