From bde990bfeaa8797723e11cad216a9b074fa804fa Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 8 Sep 2019 15:41:20 -0400 Subject: Rework the creation of build.sh so it's not a template. * build.sh: Rename from build.template. Get the list of objects from the Makefile. Move configure-replaced variables ... * build.cfg.in: to this new .in file. * configure.ac: Remove special handling of build.sh.in and add build.cfg as a generated file. * Makefile.am (EXTRA_DIST): Remove build.sh.in and add build.sh and build.cfg.in for build.sh.in. * maintMakefile: Remove handling for build.template. Treat build.sh as a source file, not a generated file. * .gitignore: Ignore generated build.cfg file. --- maintMakefile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'maintMakefile') diff --git a/maintMakefile b/maintMakefile index b47e7145..0a44a623 100644 --- a/maintMakefile +++ b/maintMakefile @@ -85,16 +85,6 @@ Basic.mk: Basic.mk.template .dep_segment Makefile $(word 2,$^) >>$@ chmod a-w $@ -# Construct build.sh.in -# -build.sh.in: build.template Makefile - rm -f $@ - sed -e 's@%objs%@$(patsubst %.o,%.$${OBJEXT},$(filter-out src/remote-%,$(make_OBJECTS)))@g' \ - $< > $@ - chmod a-w+x $@ - -all: build.sh.in - # Use automake to build a dependency list file, for Makebase.mk. # @@ -266,9 +256,9 @@ $(CONFIG_CHECKS): checkcfg.%: distdir $(AM_DISTCHECK_CONFIGURE_FLAGS) $(DISTCHECK_CONFIGURE_FLAGS) exec >>'checkcfg.$*.log' 2>&1; set -x; \ cd $(distdir)/_build \ - && ./build.sh \ - && ./make $(AM_MAKEFLAGS) check-local \ - && ./make $(AM_MAKEFLAGS) clean + && OUTDIR=_bld ../build.sh \ + && _bld/make $(AM_MAKEFLAGS) check-local \ + && _bld/make $(AM_MAKEFLAGS) clean exec >>'checkcfg.$*.log' 2>&1; set -x; \ cd $(distdir)/_build \ && $(NR_MAKE) $(AM_MAKEFLAGS) CFLAGS='$(AM_CFLAGS)' \ @@ -405,7 +395,7 @@ $(COV_BUILD_FILE): $(filter %.c %.h,$(DISTFILES)) CFLAGS='$(AM_CFLAGS)' PATH="$${COVERITY_PATH:+$$COVERITY_PATH/bin:}$$PATH"; \ cd '$(distdir)'/_build \ - && cov-build --dir cov-int ./build.sh + && cov-build --dir cov-int ../build.sh rm -f '$@' (cd '$(distdir)'/_build && tar czf - cov-int) > '$@' -- cgit v1.2.1