1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 16:28:50 -05:00
pacman/contrib/Makefile.am
Dan McGee 6eedf06fcc Fix bash shell location check
BASH is defined when you are actually using bash during configure, which
sucks because it ends up being '/bin/sh', messing up all of our scripts.
Change the name of the variable we use in configure, and also ensure we get
a full path to the executable by using AC_PATH_PROGS rather than
AC_CHECK_PROGS. Finally, change the variable name everywhere we use it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-13 17:50:54 -05:00

44 lines
759 B
Makefile

OURFILES = \
bacman \
bash_completion \
pacdiff \
paclist \
pacscripts \
pacsearch \
pactree \
wget-xdelta.sh \
zsh_completion
EXTRA_DIST = \
PKGBUILD.vim \
bacman.in \
bash_completion.in \
pacdiff.in \
paclist.in \
pacscripts.in \
pacsearch.in \
pactree.in \
vimprojects \
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_SHELL[@]|$(BASH_SHELL)|g'
$(OURFILES): Makefile
@echo ' ' GEN $@;
@rm -f $@ $@.tmp
@cp -a $@.in $@.tmp
@$(edit) $@.in >$@.tmp
@mv $@.tmp $@
all-am: $(OURFILES)
# vim:set ts=2 sw=2 noet: