aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am25
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 780af9c..8e45141 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,18 @@
-SUBDIRS = src/modules
+modulesdir=$(datadir)/eselect/modules/
+
+modules_DATA = \
+ src/modules/ecj.eselect \
+ src/modules/java-nsplugin.eselect \
+ src/modules/java-vm.eselect \
+ src/modules/maven.eselect
+
+EXTRA_DIST = \
+ src/modules/ecj.eselect.in \
+ src/modules/java-nsplugin.eselect.in \
+ src/modules/java-vm.eselect.in \
+ src/modules/maven.eselect.in
+
+CLEANFILES = $(modules_DATA)
MAINTAINERCLEANFILES = \
aclocal.m4 \
@@ -8,7 +22,7 @@ MAINTAINERCLEANFILES = \
Makefile.in \
INSTALL
-EXTRA_DIST = \
+EXTRA_DIST += \
ChangeLog.old.eselect-ecj \
ChangeLog.old.eselect-java-nsplugin \
ChangeLog.old.eselect-java-vm \
@@ -17,6 +31,13 @@ EXTRA_DIST = \
NEWS \
README
+
+create-modules-dir:
+ $(MKDIR_P) $(top_builddir)/src/modules
+
+$(modules_DATA): | create-modules-dir
+ $(SED) "s|\@VERSION\@|@PACKAGE_VERSION@|g" $(top_srcdir)/$@.in >$@
+
dist-hook:
if test -d "$(srcdir)"/.svn ; then \
echo "Generating ChangeLog ..." ; \