Add back Makefile rules to create .config.h

This fixes a bug introduced in commit f2ae2327, which improved the Makefiles for parallel builds
but in doing so removed the rule to create an empty .config.h file.

.config.h isn't included in the source distribution - it's created by bxconfigure if you run it.
If you don't run it, the build systems needs to create an empty one.  This commit adds a rule to
both the toplevel Makefile.in and source/Makefile.in (the latter in case you're running 'make' just
in the source/ directory).  The toplevel one is required for building the modules tree under dll/,
since the module Makefiles don't have the right dependencies wired up.

This also makes 'distclean' remove the .config.h file.
This commit is contained in:
Kevin Easton
2016-08-02 23:29:10 +10:00
parent bc5c20ef5c
commit d9b522cd0b
2 changed files with 9 additions and 3 deletions

View File

@@ -187,6 +187,9 @@ all: source_all dll
@echo else you can type \"$(MAKE_BIN) install_local\" to install $(_VERSION_) to your home
@echo directory.
.config.h:
touch $@
install: all installbin installdll installscript installman installhelp \
installtranslation reallydone
@@ -194,13 +197,13 @@ installeverything: install
everything: all
source_all:
source_all: .config.h
@cd source && $(MAKE) all
$(_VERSION_):
$(_VERSION_): .config.h
@cd source && $(MAKE) $(_VERSION_)
dll:
dll: .config.h
@cd dll && $(MAKE) all
installdll: $(srcdir)/Makefile dll/Makefile installdirs dll