-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.am
36 lines (27 loc) · 912 Bytes
/
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
include $(top_srcdir)/Makefile.decl
SUBDIRS = templates
if COND_WITH_FONTS
SUBDIRS += fonts
endif
# install smjack .desktop file
dotdesktopdir = $(datarootdir)/applications
dotdesktop_DATA = smjack.desktop
EXTRA_DIST += $(dotdesktop_DATA)
# install related pixmaps
sharedpixmapsdir = $(datarootdir)/pixmaps
sharedpixmaps_DATA = smjack.png
EXTRA_DIST += $(sharedpixmaps_DATA)
dist-hook:
if test -f $(INSTRUMENTS_ARCHIVE); then \
cp $(INSTRUMENTS_ARCHIVE) $(distdir); \
fi
install-data-hook:
if test -f $(INSTRUMENTS_ARCHIVE); then \
tar xf $(INSTRUMENTS_ARCHIVE) -C $(DESTDIR)$(pkgdatadir) --no-same-owner --no-same-permissions; \
fi
# uninstall all files that the tarball contains
# - ignore directories
uninstall-local:
if test -f $(INSTRUMENTS_ARCHIVE); then \
tar --list -f $(INSTRUMENTS_ARCHIVE) | grep -v '/$$' | tr '\n' '\0' | (cd $(DESTDIR)$(pkgdatadir) ; xargs -0 rm -f); \
fi