1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/contrib/Makefile.am
Nezmer 05f0a28932 Use sysconfdir, localstatedir, BASH instead of hardcoded values
This applies to contrib/ files, our scripts, and the documentation.

Dan: fix 'make clean' in contrib/ directory.

Signed-off-by: Nezmer <git@nezmer.info>
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-11 20:29:22 -05:00

45 lines
761 B
Makefile

OURFILES = \
PKGBUILD.vim \
bacman \
bash_completion \
pacdiff \
paclist \
pacscripts \
pacsearch \
pactree \
vimprojects \
wget-xdelta.sh \
zsh_completion
EXTRA_DIST = \
PKGBUILD.vim.in \
bacman.in \
bash_completion.in \
pacdiff.in \
paclist.in \
pacscripts.in \
pacsearch.in \
pactree.in \
vimprojects.in \
wget-xdelta.sh.in \
zsh_completion.in \
README
# Files that should be removed, but which Automake does not know.
MOSTLYCLEANFILES = $(OURFILES) *.tmp
edit = sed \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@BASH[@]|$(BASH)|g'
$(OURFILES): Makefile
@rm -f $@ $@.tmp
@cp -a $@.in $@.tmp
$(edit) $@.in >$@.tmp
@mv $@.tmp $@
all-am: $(OURFILES)
# vim:set ts=2 sw=2 noet: