2011-11-06 14:07:00 -08:00
|
|
|
SUBDIRS = completions doc helpers test
|
2009-02-18 13:00:03 -08:00
|
|
|
|
2011-05-02 09:43:56 -07:00
|
|
|
pkgdata_DATA = bash_completion
|
2009-02-18 13:00:03 -08:00
|
|
|
|
2011-11-04 13:13:30 -07:00
|
|
|
# Empty, but here just to get the compat dir created with install
|
|
|
|
compat_DATA =
|
|
|
|
|
2009-10-10 13:01:01 -07:00
|
|
|
profiledir = $(sysconfdir)/profile.d
|
|
|
|
profile_DATA = bash_completion.sh
|
|
|
|
|
2011-05-02 11:31:47 -07:00
|
|
|
pkgconfigdir = $(datadir)/pkgconfig
|
|
|
|
pkgconfig_DATA = bash-completion.pc
|
|
|
|
|
2012-03-18 13:49:57 -07:00
|
|
|
cmakeconfigdir = $(datadir)/cmake/$(PACKAGE)/
|
|
|
|
cmakeconfig_DATA = bash-completion-config.cmake \
|
|
|
|
bash-completion-config-version.cmake
|
|
|
|
|
2009-12-29 14:50:08 -08:00
|
|
|
bash_completion.sh: bash_completion.sh.in Makefile
|
2011-05-02 09:56:14 -07:00
|
|
|
sed -e 's|@pkgdatadir[@]|$(pkgdatadir)|' <$(srcdir)/$@.in >$@
|
2009-12-29 14:50:08 -08:00
|
|
|
|
2011-05-03 02:31:37 -07:00
|
|
|
CLEANFILES = bash_completion.sh bash-completion.pc
|
2009-12-29 14:50:08 -08:00
|
|
|
|
2015-02-15 00:01:43 -08:00
|
|
|
EXTRA_DIST = CHANGES $(pkgdata_DATA) bash_completion.sh.in .dir-locals.el
|
2011-04-20 05:18:49 -07:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
|
2011-11-04 13:08:35 -07:00
|
|
|
sed -e 's|=/etc/bash_completion\.d|=$(compatdir)|' \
|
2012-03-18 13:49:57 -07:00
|
|
|
$(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
|
2011-11-04 13:05:46 -07:00
|
|
|
cat $$tmpfile > $(DESTDIR)$(pkgdatadir)/bash_completion && \
|
2012-03-18 13:49:57 -07:00
|
|
|
sed -e 's|\$${prefix}|$(prefix)|' \
|
|
|
|
$(DESTDIR)$(datadir)/cmake/$(PACKAGE)/bash-completion-config.cmake \
|
|
|
|
> $$tmpfile && \
|
|
|
|
cat $$tmpfile > \
|
|
|
|
$(DESTDIR)$(datadir)/cmake/$(PACKAGE)/bash-completion-config.cmake && \
|
2011-11-04 13:05:46 -07:00
|
|
|
rm $$tmpfile
|