repo-add: clean up help messages
[pacman-ng.git] / contrib / Makefile.am
blob0ff1d9dbd60156674dad195db60d0b0ba472679a
1 OURSCRIPTS = \
2         bacman \
3         paccache \
4         pacdiff \
5         paclist \
6         paclog-pkglist \
7         pacscripts \
8         pacsearch \
9         pacsysclean
11 OURFILES = \
12         bash_completion \
13         zsh_completion
15 EXTRA_DIST = \
16         PKGBUILD.vim \
17         bacman.in \
18         bash_completion.in \
19         paccache.in \
20         paclog-pkglist.in \
21         pacdiff.in \
22         paclist.in \
23         pacscripts.in \
24         pacsearch.in \
25         pacsysclean.in \
26         vimprojects \
27         zsh_completion.in \
28         README
30 # Files that should be removed, but which Automake does not know.
31 MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
33 edit = sed \
34         -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
35         -e 's|@localstatedir[@]|$(localstatedir)|g' \
36         -e 's|@SIZECMD[@]|$(SIZECMD)|g' \
37         -e '1s|!/bin/bash|!$(BASH_SHELL)|g'
39 $(OURSCRIPTS): Makefile
40         @echo '    ' GEN $@;
41         @$(RM) $@ $@.tmp
42         @$(edit) $(srcdir)/$@.in >$@.tmp
43         @chmod +x $@.tmp
44         @chmod a-w $@.tmp
45         @mv $@.tmp $@
47 $(OURFILES): Makefile
48         @echo '    ' GEN $@;
49         @$(RM) $@ $@.tmp
50         @$(edit) $(srcdir)/$@.in >$@.tmp
51         @chmod a-w $@.tmp
52         @mv $@.tmp $@
54 all-am: $(OURSCRIPTS) $(OURFILES)
56 bacman: $(srcdir)/bacman.in
57 bash_completion: $(srcdir)/bash_completion.in
58 paccache: $(srcdir)/paccache.in
59 pacdiff: $(srcdir)/pacdiff.in
60 paclist: $(srcdir)/paclist.in
61 paclog-pkglist: $(srcdir)/paclog-pkglist.in
62 pacscripts: $(srcdir)/pacscripts.in
63 pacsearch: $(srcdir)/pacsearch.in
64 pacsysclean: $(srcdir)/pacsysclean.in
65 pactree: $(srcdir)/pactree.in
66 zsh_completion: $(srcdir)/zsh_completion.in
68 # vim:set ts=2 sw=2 noet: