Fix memory leak if package sig was invalid
[pacman-ng.git] / contrib / Makefile.am
blobe9f77940ffa17884202768c5b8cb331a3082acc9
1 OURSCRIPTS = \
2         bacman \
3         pacdiff \
4         paclist \
5         pacscripts \
6         pacsearch
8 OURFILES = \
9         bash_completion \
10         zsh_completion
12 EXTRA_DIST = \
13         PKGBUILD.vim \
14         bacman.in \
15         bash_completion.in \
16         pacdiff.in \
17         paclist.in \
18         pacscripts.in \
19         pacsearch.in \
20         vimprojects \
21         zsh_completion.in \
22         README
24 # Files that should be removed, but which Automake does not know.
25 MOSTLYCLEANFILES = $(OURSCRIPTS) $(OURFILES) *.tmp
27 edit = sed \
28         -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
29         -e 's|@localstatedir[@]|$(localstatedir)|g' \
30         -e 's|@BASH_SHELL[@]|$(BASH_SHELL)|g'
32 $(OURSCRIPTS): Makefile
33         @echo '    ' GEN $@;
34         @rm -f $@ $@.tmp
35         @$(edit) $(srcdir)/$@.in >$@.tmp
36         @chmod +x $@.tmp
37         @chmod a-w $@.tmp
38         @mv $@.tmp $@
40 $(OURFILES): Makefile
41         @echo '    ' GEN $@;
42         @rm -f $@ $@.tmp
43         @$(edit) $(srcdir)/$@.in >$@.tmp
44         @chmod a-w $@.tmp
45         @mv $@.tmp $@
47 all-am: $(OURSCRIPTS) $(OURFILES)
49 bacman: $(srcdir)/bacman.in
50 bash_completion: $(srcdir)/bash_completion.in
51 pacdiff: $(srcdir)/pacdiff.in
52 paclist: $(srcdir)/paclist.in
53 pacscripts: $(srcdir)/pacscripts.in
54 pacsearch: $(srcdir)/pacsearch.in
55 pactree: $(srcdir)/pactree.in
56 zsh_completion: $(srcdir)/zsh_completion.in
58 # vim:set ts=2 sw=2 noet: