From 8a0e1bce040f982b27cd715a253d6c83bf806dbe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 Sep 2012 08:21:16 +0200 Subject: build: build lib/ using non-recursive make * bootstrap.conf (gnulib_modules): Use the new module. (bootstrap_post_import_hook): Invoke prefix-gnulib-mk. * configure.ac (AC_CONFIG_FILES): Remove lib/Makefile. * lib/Makefile.am: Renamed... * lib/local.mk: ...to this. * src/local.mk (CLEANFILES): Append, don't set. (noinst_LIBRARIES): Likewise. (AM_CPPFLAGS): Don't set this here. * Makefile.am (AM_CPPFLAGS): Define here instead. (noinst_LIBRARIES, CLEANFILES, MOSTLYCLEANDIRS, MOSTLYCLEANFILES): Initialize here, so we can append to them from each included local.mk (SUBDIRS): Remove "lib". --- src/local.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/local.mk b/src/local.mk index 78e7743fb..0f9e000a9 100644 --- a/src/local.mk +++ b/src/local.mk @@ -65,16 +65,14 @@ EXTRA_DIST += \ src/extract-magic \ src/c99-to-c89.diff -CLEANFILES = $(SCRIPTS) +CLEANFILES += $(SCRIPTS) # Also remove these sometimes-built programs. # For example, even when excluded, they're built via 'sc_check-AUTHORS' # or 'dist'. CLEANFILES += $(no_install__progs) -AM_CPPFLAGS = -I$(top_srcdir)/lib -Isrc - -noinst_LIBRARIES = src/libver.a +noinst_LIBRARIES += src/libver.a nodist_src_libver_a_SOURCES = src/version.c src/version.h # Tell the linker to omit references to unused shared libraries. -- cgit v1.2.3-70-g09d2