aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-12-30 11:06:38 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-12-30 11:06:38 +0000
commit2ca06102fecb5deadd72fdae66b1e42a1836a93b (patch)
tree73637c98569bfbfd6bcce640b97d1dfb6933cb79
parentReplace scm UIDs with actual names and mail in old ChangeLogs. (diff)
downloadeselect-java-2ca06102fecb5deadd72fdae66b1e42a1836a93b.tar.gz
eselect-java-2ca06102fecb5deadd72fdae66b1e42a1836a93b.tar.bz2
eselect-java-2ca06102fecb5deadd72fdae66b1e42a1836a93b.zip
Switch to non-recursive Makefile.
svn path=/projects/eselect-java/trunk/; revision=9128
-rw-r--r--Makefile.am25
-rw-r--r--configure.ac4
-rw-r--r--src/modules/Makefile.am19
3 files changed, 25 insertions, 23 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 ..." ; \
diff --git a/configure.ac b/configure.ac
index d4bd33f..5252a60 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,9 +3,9 @@ AC_PREREQ([2.68])
AC_CONFIG_SRCDIR([src/modules/java-vm.eselect.in])
AM_INIT_AUTOMAKE([1.11])
-AC_PATH_PROG([SED],[sed])
+AC_PROG_MKDIR_P
+AC_PROG_SED
AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([src/modules/Makefile])
AC_OUTPUT
diff --git a/src/modules/Makefile.am b/src/modules/Makefile.am
deleted file mode 100644
index 9e7ee74..0000000
--- a/src/modules/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-modulesdir=$(datadir)/eselect/modules/
-
-modules_DATA = \
- ecj.eselect \
- java-nsplugin.eselect \
- java-vm.eselect \
- maven.eselect
-
-EXTRA_DIST = \
- ecj.eselect.in \
- java-nsplugin.eselect.in \
- java-vm.eselect.in \
- maven.eselect.in
-
-CLEANFILES = $(modules_DATA)
-MAINTAINERCLEANFILES = Makefile.in
-
-%.eselect : %.eselect.in
- $(SED) "s|\@VERSION\@|@PACKAGE_VERSION@|g" $< >$@