mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-09-02 15:41:25 +03:00
This makes it so packages using automake-1.11's silent-rules option can print e.g., a single "GEN configmake.h" line, rather than the 30+ statements that perform the job. If you want to see the actual commands, you can still run "make V=1". Improved-by: Bruno Haible <bruno@clisp.org> * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes so that make output is abbreviated when those variables are defined appropriately. * modules/argz: Likewise. * modules/arpa_inet: Likewise. * modules/byteswap: Likewise. * modules/configmake: Likewise. * modules/dirent: Likewise. * modules/errno: Likewise. * modules/fcntl: Likewise. * modules/float: Likewise. * modules/fnmatch: Likewise. * modules/getopt-posix: Likewise. * modules/glob: Likewise. * modules/iconv_open: Likewise. * modules/inttypes: Likewise. * modules/localcharset: Likewise. * modules/locale: Likewise. * modules/math: Likewise. * modules/netdb: Likewise. * modules/netinet_in: Likewise. * modules/poll: Likewise. * modules/posix_spawnp-tests: Likewise. * modules/sched: Likewise. * modules/search: Likewise. * modules/selinux-h: Likewise. * modules/signal: Likewise. * modules/spawn: Likewise. * modules/stdarg: Likewise. * modules/stdbool: Likewise. * modules/stddef: Likewise. * modules/stdint: Likewise. * modules/stdio: Likewise. * modules/stdlib: Likewise. * modules/string: Likewise. * modules/strings: Likewise. * modules/sys_file: Likewise. * modules/sys_ioctl: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sys_stat: Likewise. * modules/sys_time: Likewise. * modules/sys_times: Likewise. * modules/sys_utsname: Likewise. * modules/sys_wait: Likewise. * modules/sysexits: Likewise. * modules/time: Likewise. * modules/unistd: Likewise. * modules/wchar: Likewise. * modules/wctype: Likewise.
77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
Description:
|
|
Variables set by "configure" or "make".
|
|
|
|
Files:
|
|
|
|
Depends-on:
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
# Retrieve values of the variables through 'configure' followed by
|
|
# 'make', not directly through 'configure', so that a user who
|
|
# sets some of these variables consistently on the 'make' command
|
|
# line gets correct results.
|
|
#
|
|
# One advantage of this approach, compared to the classical
|
|
# approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
|
|
# is that it protects against the use of undefined variables.
|
|
# If, say, $(libdir) is not set in the Makefile, LIBDIR is not
|
|
# defined by this module, and code using LIBDIR gives a
|
|
# compilation error.
|
|
#
|
|
# Another advantage is that 'make' output is shorter.
|
|
#
|
|
# Listed in the same order as the GNU makefile conventions.
|
|
# The Automake-defined pkg* macros are appended, in the order
|
|
# listed in the Automake 1.10a+ documentation.
|
|
configmake.h: Makefile
|
|
$(AM_V_GEN)rm -f $@-t && \
|
|
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
|
echo '#define PREFIX "$(prefix)"'; \
|
|
echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
|
|
echo '#define BINDIR "$(bindir)"'; \
|
|
echo '#define SBINDIR "$(sbindir)"'; \
|
|
echo '#define LIBEXECDIR "$(libexecdir)"'; \
|
|
echo '#define DATAROOTDIR "$(datarootdir)"'; \
|
|
echo '#define DATADIR "$(datadir)"'; \
|
|
echo '#define SYSCONFDIR "$(sysconfdir)"'; \
|
|
echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
|
|
echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
|
|
echo '#define INCLUDEDIR "$(includedir)"'; \
|
|
echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
|
|
echo '#define DOCDIR "$(docdir)"'; \
|
|
echo '#define INFODIR "$(infodir)"'; \
|
|
echo '#define HTMLDIR "$(htmldir)"'; \
|
|
echo '#define DVIDIR "$(dvidir)"'; \
|
|
echo '#define PDFDIR "$(pdfdir)"'; \
|
|
echo '#define PSDIR "$(psdir)"'; \
|
|
echo '#define LIBDIR "$(libdir)"'; \
|
|
echo '#define LISPDIR "$(lispdir)"'; \
|
|
echo '#define LOCALEDIR "$(localedir)"'; \
|
|
echo '#define MANDIR "$(mandir)"'; \
|
|
echo '#define MANEXT "$(manext)"'; \
|
|
echo '#define PKGDATADIR "$(pkgdatadir)"'; \
|
|
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
|
|
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
|
|
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
|
|
} | sed '/""/d' > $@-t && \
|
|
if test -f $@ && cmp $@-t $@ > /dev/null; then \
|
|
rm -f $@-t; \
|
|
else \
|
|
rm -f $@; mv $@-t $@; \
|
|
fi
|
|
|
|
BUILT_SOURCES += configmake.h
|
|
CLEANFILES += configmake.h configmake.h-t
|
|
|
|
Include:
|
|
/* Include only after all system include files. */
|
|
#include "configmake.h"
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|