-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
76 lines (64 loc) · 2.46 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
# (C) Martin V\"ath <martin@mvath.de>
AUTOMAKE_OPTIONS = foreign 1.10 no-dist-gzip dist-bzip2 -Wobsolete -Wportability -Wextra-portability
if OPENRC_WRAPPER
extra_dist_wrapper =
dist_bin_SCRIPTS = bin/openrc-wrapper
INSTALL_WRAPPER = $(INSTALL_DATA)
RM_WRAPPER = $(RM)
else
extra_dist_wrapper = bin/openrc-wrapper
INSTALL_WRAPPER = :
RM_WRAPPER = :
endif
EXTRA_DIST = \
.gitignore \
contrib \
autogen.sh \
INSTALL \
systemd/squash_dir.service \
systemd/squash_dir@.service \
zsh/_openrc-wrapper \
zsh/_squash_dir \
$extra_dist_wrapper
dist_doc_DATA = \
README.md \
AUTHORS \
ChangeLog
CLEANFILES = \
patching.tmp
# Actually, we want nobase_dist_sysconf_SCRIPTS,
# but stupid automake claims it knows better than me and forbids this.
pkgdatadir=$(sysconfdir)
nobase_dist_pkgdata_SCRIPTS = \
init.d/squash_dir
nobase_dist_sysconf_DATA = \
conf.d/squash_dir
dist_sbin_SCRIPTS = \
sbin/squash_dir
# Remove things created by autogen.sh
maintainer-clean-local:
$(AM_V_at)$(RM) -fr "$(top_srcdir)/build" "$(top_srcdir)/config" "$(top_srcdir)/m4" "$(top_srcdir)"/tmpcvs* "$(top_srcdir)"/tmpwrk*
$(AM_V_at)$(RM) -f "$(top_srcdir)/aclocal.m4" "$(top_srcdir)/Makefile.in" "$(top_srcdir)/configure"
$(AM_V_at)for i in tar.xz tar.bz2 tar.gz zip; do rm -vf -- "$(top_srcdir)"/$(PACKAGE)-*."$$i"; done
# Remove things created by autogen.sh also in the tarball
dist-hook:
$(AM_V_at)$(RM) -fr "$(distdir)/build" "$(distdir)/config" "$(distdir)/m4"
$(AM_V_at)$(RM) "$(distdir)/aclocal.m4" "$(distdir)/Makefile.in" "$(distdir)/configure"
install-data-local:
$(AM_V_at)if test x"$(ZSH_COMPLETION)" != x"" ; \
then $(INSTALL_DATA) -D "$(srcdir)/zsh/_squash_dir" "$(DESTDIR)$(ZSH_COMPLETION)/_squash_dir" && \
$(INSTALL_WRAPPER) -D "$(srcdir)/zsh/_openrc-wrapper" "$(DESTDIR)$(ZSH_COMPLETION)/_openrc-wrapper" ; \
fi
$(AM_V_at)if test x"$(SYSTEMDSYSTEMUNITDIR)" != x"" ; \
then $(INSTALL_DATA) -D "$(srcdir)/systemd/squash_dir.service" "$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/squash_dir.service" && \
$(INSTALL_DATA) -D "$(srcdir)/systemd/squash_dir@.service" "$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/squash_dir@.service" ; \
fi
uninstall-local:
$(AM_V_at)if test x"$(ZSH_COMPLETION)" != x"" ; \
then $(RM) "$(DESTDIR)$(ZSH_COMPLETION)/_squash_dir" && \
$(RM_WRAPPER) "$(DESTDIR)$(ZSH_COMPLETION)/_openrc-wrapper" ; \
fi
$(AM_V_at)if test x"$(SYSTEMDSYSTEMUNITDIR)" != x"" ; \
then $(RM) "$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/squash_dir.service" && \
$(RM) "$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/squash_dir@.service" ; \
fi