2011-05-02 19:01:33 +02:00
|
|
|
SUBDIRS = completions helpers test
|
2009-02-18 22:00:03 +01:00
|
|
|
|
2011-05-02 18:43:56 +02:00
|
|
|
pkgdata_DATA = bash_completion
|
2009-02-18 22:00:03 +01:00
|
|
|
|
2009-10-10 23:01:01 +03:00
|
|
|
profiledir = $(sysconfdir)/profile.d
|
|
|
|
profile_DATA = bash_completion.sh
|
|
|
|
|
2011-05-02 20:31:47 +02:00
|
|
|
pkgconfigdir = $(datadir)/pkgconfig
|
|
|
|
pkgconfig_DATA = bash-completion.pc
|
|
|
|
|
2009-12-29 23:50:08 +01:00
|
|
|
bash_completion.sh: bash_completion.sh.in Makefile
|
2011-05-02 18:56:14 +02:00
|
|
|
sed -e 's|@pkgdatadir[@]|$(pkgdatadir)|' <$(srcdir)/$@.in >$@
|
2009-12-29 23:50:08 +01:00
|
|
|
|
2011-05-03 12:31:37 +03:00
|
|
|
CLEANFILES = bash_completion.sh bash-completion.pc
|
2009-12-29 23:50:08 +01:00
|
|
|
|
2011-05-02 20:37:56 +03:00
|
|
|
EXTRA_DIST = CHANGES $(sysconf_DATA) $(pkgdata_DATA) bash_completion.sh.in
|
2011-04-20 15:18:49 +03:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
|
2011-05-02 20:39:01 +03:00
|
|
|
sed -e 's|=/etc/bash_completion\.d|=$(sysconfdir)/bash_completion.d|' \
|
2011-05-02 18:56:14 +02:00
|
|
|
$(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
|
|
|
|
mv $$tmpfile $(DESTDIR)$(pkgdatadir)/bash_completion
|