aboutsummaryrefslogtreecommitdiff
path: root/etc/Makefile.am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-02 16:28:14 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-02 16:28:14 +0300
commitea77a73d4119feb0481e74bfa2754ebd2100bed9 (patch)
treed5609fc4d72222d10a10e7dff758843f32732365 /etc/Makefile.am
parent4e3ebe248cef60d084713c34594f7103f15a4035 (diff)
downloadeclat-ea77a73d4119feb0481e74bfa2754ebd2100bed9.tar.gz
eclat-ea77a73d4119feb0481e74bfa2754ebd2100bed9.tar.bz2
Add command completion routine for bash. Install formats to pkgdatadir
* README: Update. * configure.ac: Remove --with-format-dir. Use --pkgdatadir instead. * etc/Makefile.am: Add new file. * etc/compl.sh: New file.
Diffstat (limited to 'etc/Makefile.am')
-rw-r--r--etc/Makefile.am17
1 files changed, 4 insertions, 13 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
index 6ef5e1a..a42deb2 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -37,11 +37,9 @@ if SPLIT_FORMATS
SUFFIXES += .forlan .fln
.fln.forlan:
$(AM_V_GEN)$(abs_builddir)/flncat $< default.fln > $@
-formatdir = @FORMATDIR@
FORMATFILES = $(FLNFILES:.fln=.forlan)
FORMATNAME = $${command}
else
-formatdir = @FORMATDIR@
FORMATFILES = eclat.forlan
eclat.forlan: $(FLNFILES) default.fln
$(AM_V_GEN)(cd $(srcdir); $(abs_builddir)/flncat $(FLNFILES) default.fln) > eclat.forlan
@@ -52,21 +50,14 @@ noinst_SCRIPTS=eclat.conf $(FORMATFILES)
CLEANFILES=eclat.conf $(FORMATFILES)
.cfin.conf:
- $(AM_V_GEN)sed 's^FORMATDIR^$(formatdir)^;s^FORMATNAME^$(FORMATNAME)^' $< > $@
+ $(AM_V_GEN)sed 's^FORMATDIR^$(pkgdatadir)^;s^FORMATNAME^$(FORMATNAME)^' $< > $@
-install-formats: $(FORMATFILES)
- ${INSTALL} -d $(DESTDIR)$(formatdir); \
- for file in $(FORMATFILES); do \
- ${INSTALL} -m 644 $$file $(DESTDIR)$(formatdir)/$$file; \
- done
+pkgdata_DATA = $(FORMATFILES)
+dist_pkgdata_DATA = compl.sh
install-data-local:
@test -z "$(DESTDIR)$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
@if [ -r $(DESTDIR)$(sysconfdir)/eclat.conf ]; then :; \
- else ${INSTALL} -m 644 $(top_srcdir)/etc/eclat.conf \
+ else ${INSTALL} -m 644 $(top_builddir)/etc/eclat.conf \
$(DESTDIR)$(sysconfdir)/eclat.conf; \
- ${INSTALL} -d $(DESTDIR)$(formatdir); \
- for file in $(FORMATFILES); do \
- ${INSTALL} -m 644 $$file $(DESTDIR)$(formatdir)/$$file; \
- done; \
fi

Return to:

Send suggestions and report system problems to the System administrator.