2010-10-31 23:20:19 +01:00
|
|
|
SUBDIRS = completions test
|
2009-02-18 22:00:03 +01:00
|
|
|
|
|
|
|
sysconf_DATA = bash_completion
|
|
|
|
|
2009-10-10 23:01:01 +03:00
|
|
|
profiledir = $(sysconfdir)/profile.d
|
|
|
|
profile_DATA = bash_completion.sh
|
|
|
|
|
2009-12-29 23:50:08 +01:00
|
|
|
bash_completion.sh: bash_completion.sh.in Makefile
|
|
|
|
sed -e 's|@sysconfdir[@]|$(sysconfdir)|' <$(srcdir)/$@.in >$@
|
|
|
|
|
|
|
|
CLEANFILES = bash_completion.sh
|
|
|
|
|
2010-08-02 22:07:24 +02:00
|
|
|
EXTRA_DIST = CHANGES $(sysconf_DATA) bash_completion.sh.in
|
2011-04-20 15:18:49 +03:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
|
|
|
|
sed -e 's|=/etc/bash_completion|=$(sysconfdir)/bash_completion|' \
|
|
|
|
$(DESTDIR)$(sysconfdir)/bash_completion > $$tmpfile && \
|
|
|
|
mv $$tmpfile $(DESTDIR)$(sysconfdir)/bash_completion
|