New configmake module, so that "make" output needn't be cluttered
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Aug 2006 23:14:53 +0000 (23:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Aug 2006 23:14:53 +0000 (23:14 +0000)
by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
* MODULES.html.sh (Support for building libraries and executables):
Add configmake.
* modules/configmake: New file.

ChangeLog
MODULES.html.sh
modules/configmake [new file with mode: 0644]

index e8b26d2eb5c48fabcdfbe9d3138f3c0ba944e9d1..92cec004a8de49fedb7e13125e32e0b700dde049 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       New configmake module, so that "make" output needn't be cluttered
+       by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
+       * MODULES.html.sh (Support for building libraries and executables):
+       Add configmake.
+       * modules/configmake: New file.
+
 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * MODULES.html.sh (Support for building libraries and executables):
index 100f7d6f79a2fa5c3cc4e55dc2780e04c1e95aff..5fb97476463cf2b4d7d559e2f7c328d8c05183ee 100755 (executable)
@@ -2099,6 +2099,7 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module configmake
   func_module dummy
   func_module elisp-comp
   func_module ldd
diff --git a/modules/configmake b/modules/configmake
new file mode 100644 (file)
index 0000000..4f162b9
--- /dev/null
@@ -0,0 +1,49 @@
+Description:
+Variables set by "configure" or "make".
+
+Files:
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+# Listed in the same order as the GNU makefile conventions.
+configmake.h:
+       ( \
+         echo '#define CONFIGMAKE_PREFIX "$(prefix)"'; \
+         echo '#define CONFIGMAKE_EXEC_PREFIX "$(exec_prefix)"'; \
+         echo '#define CONFIGMAKE_BINDIR "$(bindir)"'; \
+         echo '#define CONFIGMAKE_SBINDIR "$(sbindir)"'; \
+         echo '#define CONFIGMAKE_LIBEXECDIR "$(libexecdir)"'; \
+         echo '#define CONFIGMAKE_DATAROOTDIR "$(datarootdir)"'; \
+         echo '#define CONFIGMAKE_DATADIR "$(datadir)"'; \
+         echo '#define CONFIGMAKE_SYSCONFDIR "$(sysconfdir)"'; \
+         echo '#define CONFIGMAKE_SHAREDSTATEDIR "$(sharedstatedir)"'; \
+         echo '#define CONFIGMAKE_LOCALSTATEDIR "$(localstatedir)"'; \
+         echo '#define CONFIGMAKE_INCLUDEDIR "$(includedir)"'; \
+         echo '#define CONFIGMAKE_OLDINCLUDEDIR "$(oldincludedir)"'; \
+         echo '#define CONFIGMAKE_DOCDIR "$(docdir)"'; \
+         echo '#define CONFIGMAKE_INFODIR "$(infodir)"'; \
+         echo '#define CONFIGMAKE_HTMLDIR "$(htmldir)"'; \
+         echo '#define CONFIGMAKE_DVIDIR "$(dvidir)"'; \
+         echo '#define CONFIGMAKE_PDFDIR "$(pdfdir)"'; \
+         echo '#define CONFIGMAKE_PSDIR "$(psdir)"'; \
+         echo '#define CONFIGMAKE_LIBDIR "$(libdir)"'; \
+         echo '#define CONFIGMAKE_LISPDIR "$(lispdir)"'; \
+         echo '#define CONFIGMAKE_LOCALEDIR "$(localedir)"'; \
+         echo '#define CONFIGMAKE_MANDIR "$(mandir)"'; \
+         echo '#define CONFIGMAKE_MANEXT "$(manext)"'; \
+       :) | sed '/""/d' >$@-t
+       mv $@-t $@
+BUILT_SOURCES += configmake.h
+CLEANFILES += configmake.h configmake.h-t
+
+Include:
+"configmake.h"
+
+License:
+LGPL
+
+Maintainer:
+all