diff options
author | David Paleino <dapal@debian.org> | 2011-11-03 12:32:52 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-11-03 12:32:52 +0100 |
commit | 2c8171c38d87ddef31c92a76547d3fdf773a1337 (patch) | |
tree | 5e720d5a06ead72ed55454bf6647a712a761ed91 /Makefile.am | |
parent | 9920a8faedf704420571d8072ccab27e9dac40ba (diff) | |
download | bash-completion-2c8171c38d87ddef31c92a76547d3fdf773a1337.tar.gz |
Imported Upstream version 1.90upstream/1.90
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index dcecc32c..3441b630 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,13 +1,23 @@ -SUBDIRS = completions test +SUBDIRS = completions helpers test -sysconf_DATA = bash_completion +pkgdata_DATA = bash_completion profiledir = $(sysconfdir)/profile.d profile_DATA = bash_completion.sh +pkgconfigdir = $(datadir)/pkgconfig +pkgconfig_DATA = bash-completion.pc + bash_completion.sh: bash_completion.sh.in Makefile - sed -e 's|@sysconfdir[@]|$(sysconfdir)|' <$(srcdir)/$@.in >$@ + sed -e 's|@pkgdatadir[@]|$(pkgdatadir)|' <$(srcdir)/$@.in >$@ + +CLEANFILES = bash_completion.sh bash-completion.pc -CLEANFILES = bash_completion.sh +EXTRA_DIST = CHANGES $(sysconf_DATA) $(pkgdata_DATA) bash_completion.sh.in \ + .dir-locals.el -EXTRA_DIST = CHANGES $(sysconf_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|' \ + $(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \ + mv $$tmpfile $(DESTDIR)$(pkgdatadir)/bash_completion |