Branch: Tag:

2002-03-09

2002-03-09 16:45:23 by Martin Stjernholm <mast@lysator.liu.se>

Only do output caching to a foo.compiled file in precompile.sh when it's
specifically requested with a --cache argument. This fixes some cases when
precompile.sh is used without the input file name as the last argument, and
it makes precompile.sh usable as a generic pike launcher (perhaps it ought
to be renamed to runpike.sh).

Rev: src/Makefile.in:1.289
Rev: src/modules/dynamic_module_makefile.in:1.86
Rev: src/modules/static_module_makefile.in:1.77
Rev: src/precompile.sh.in:1.26

1:   # - # $Id: Makefile.in,v 1.288 2002/03/09 16:17:00 nilsson Exp $ + # $Id: Makefile.in,v 1.289 2002/03/09 16:45:22 mast Exp $   #      # This line is needed on some machines.
319:    -DPMOD_PROTO=PMOD_PROTO "$<" >"$@"      .c.protos: precompile.sh-stamp -  ./precompile.sh fake_dynamic_load.pike >"$@" --cpp --protos \ +  ./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \    $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \    -DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \    { rm "$@"; exit 1; }
354:   # -Hubbe   #   .cmod.c: precompile.sh-stamp $(TMP_BINDIR)/precompile.pike -  ./precompile.sh precompile.pike >"$@" "$<" || { rm "$@"; exit 1; } +  ./precompile.sh --cache precompile.pike >"$@" "$<" || { rm "$@"; exit 1; }      # This rule is used for some header files that are generated from the   # source, to avoid excessive rebuilding when the source change in ways
722:         interpret_functions_fixed.h: $(SRCDIR)/interpret_functions.h precompile.sh-stamp -  ./precompile.sh make_interpret_functions.pike >"$@" "$(SRCDIR)/interpret_functions.h" || { rm "$@"; exit 1; } +  ./precompile.sh --cache make_interpret_functions.pike >"$@" "$(SRCDIR)/interpret_functions.h" || { rm "$@"; exit 1; }      # UnixWare make needs help to find the source file...   builtin.o: $(SRCDIR)/builtin.c