bash-completion/Makefile.am

20 lines
632 B
Makefile
Raw Normal View History

2011-05-02 10:01:33 -07:00
SUBDIRS = completions helpers test
pkgdata_DATA = bash_completion
profiledir = $(sysconfdir)/profile.d
profile_DATA = bash_completion.sh
bash_completion.sh: bash_completion.sh.in Makefile
2011-05-02 09:56:14 -07:00
sed -e 's|@pkgdatadir[@]|$(pkgdatadir)|' <$(srcdir)/$@.in >$@
CLEANFILES = bash_completion.sh
EXTRA_DIST = CHANGES $(sysconf_DATA) $(pkgdata_DATA) bash_completion.sh.in
install-data-hook:
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
sed -e 's|=/etc/bash_completion\.d|=$(sysconfdir)/bash_completion.d|' \
2011-05-02 09:56:14 -07:00
$(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
mv $$tmpfile $(DESTDIR)$(pkgdatadir)/bash_completion