Branch: Tag:

2014-11-20

2014-11-20 12:21:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Rerun the precompiler when it has been changed.

Adds a dependency for the generated files on Tools.Standalone.precompile.

Also rewrites the Makefile rules to not use explicit dependencies
in implicit rules, as they seem to be ignored by at least gnu-make.

204:    $(SRCDIR)/interpret_protos.h \    lib @EXTRA_MODULE_REQUIREMENTS@    + PMOD_TARGETS=@PMOD_TARGETS@ +    SRC_TARGETS= \    $(SRCDIR)/language.c \    $(SRCDIR)/language.h \
212:    $(SRCDIR)/peep_engine.c \    $(SRCDIR)/case_info.h \    $(SRCDIR)/whitespace.h \ -  $(SRCDIR)/treeopt.h @PMOD_TARGETS@ +  $(SRCDIR)/treeopt.h $(PMOD_TARGETS)         #
500:    exit $$status; \    fi    + $(PMOD_TARGETS): precompile.sh-stamp $(TMP_BINDIR)/precompile.pike $(PIKE_SRC_DIR)/../lib/modules/Tools.pmod/Standalone.pmod/precompile.pike Makefile +    #   # Please note that this must be accompanied by a dependency rule as   # The .c file will not be created in the SOURCE directory otherwise.   # -Hubbe   # - .cmod.c: precompile.sh-stamp $(TMP_BINDIR)/precompile.pike + .cmod.c:    ./precompile.sh --cache precompile.pike $(PRECOMPILER_ARGS) >"$@" "$<" || { rm "$@"; exit 1; }      # The same applies to this.