pike.git
/
src
/
Makefile.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/Makefile.in:1:
#
-
# $Id: Makefile.in,v 1.
229
2001/01/
12
20
:
36
:
22
grubba
Exp $
+
# $Id: Makefile.in,v 1.
230
2001/01/
13
01
:
14
:
08
mast
Exp $
# # This line is needed on some machines. @SET_MAKE@ # Don't change this line. Define EXTRALIBS before this line if you # wish to add any libraries. LIBS=@LIBS@ $(EXTRALIBS) # This is normall the install program in the source directory
pike.git/src/Makefile.in:275:
if [ "$(exec_prefix)" != "/usr/local/bin" -a \ "$(exec_prefix)" != "/usr/local/bin/" ]; then \ ( sed -e 's!/usr/local/bin!$(exec_prefix)!' <$(TMP_BINDIR)/hilfe \ >./hilfe && chmod 755 ./hilfe) || exit 1 ; \ else \ $(INSTALL) $(TMP_BINDIR)/hilfe `pwd`/hilfe || exit 1; \ fi @echo "Done."
-
.SUFFIXES: .c .h .o .cmod .pp .pph .protos .xml
+
.SUFFIXES: .c .h .o .cmod .pp .pph .protos .xml
.h_src
.c.xml: pike $(TMP_BINDIR)/autodoc.pike @$(RUNPIKE) $(TMP_BINDIR)/autodoc.pike "$<" >"$@" .c.pp: $(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \ -DPMOD_PROTO=PMOD_PROTO "$<" >"$@" .c.protos: ./precompile.sh fake_dynamic_load.pike "$@" --cpp --protos \
pike.git/src/Makefile.in:326:
fi # # 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 precompile.pike "$@" "$<"
+
# This rule is used for some header files that are generated from the
+
# source, to avoid excessive rebuilding when the source changes in
+
# ways that doesn't affect the header.
+
#
+
# It can cause a .h target to be out-of-date repeatedly, but since it
+
# runs fast that's not an issue. This technique only works well in
+
# make's that stat the target again after the rule has run and
+
# recalculate the dependencies then. GNU make works like that.
+
.h_src.h:
+
@if if test -f $@; then cmp -s "$<" "$@"; else false; fi; then \
+
echo "No changes in $@ - leaving old"; \
+
else \
+
echo "cp $< $@"; \
+
cp "$<" "$@"; \
+
fi
+
force : @: # install install: pike hilfe pike-module aclocal @$(RUNPIKE) $(TMP_BINDIR)/install.pike $(INSTALLARGS) \ exec_prefix="$(exec_prefix)" lib_prefix="$(lib_prefix)" \ TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \ SRCDIR="$(SRCDIR)" prefix="$(prefix)" MANDIR_SRC="$(MANDIR_SRC)" \ man_prefix="$(man_prefix)" pike_name=$(pike_name) \
pike.git/src/Makefile.in:611:
# # touch modlist.h here to avoid doing this work again if the # modules/modlist.h target is checked later. module_objects: $(MODULE_REQUIREMENTS) @( cd modules ; rm remake >/dev/null 2>&1 || : ; \ $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) || exit $$? touch modules/modlist.h
-
$(SRCDIR)/interpret_protos.h
.
src: $(SRCDIR)/interpret_functions.h
-
egrep '^OPCODE' <$(SRCDIR)/interpret_functions.h >$(SRCDIR)/interpret_protos.h
.
src
+
$(SRCDIR)/interpret_protos.h
_
src: $(SRCDIR)/interpret_functions.h
+
egrep '^OPCODE' <$(SRCDIR)/interpret_functions.h >$(SRCDIR)/interpret_protos.h
_
src
-
$(SRCDIR)/interpret_protos.h: $(SRCDIR)/interpret_protos.h.src
-
@if if test -f $@; then cmp -s $(SRCDIR)/interpret_protos.h.src $@; else false; fi; then \
-
echo "No changes in $@ - leaving old"; \
-
else \
-
echo "cp $(SRCDIR)/interpret_protos.h.src $@"; \
-
cp $(SRCDIR)/interpret_protos.h.src $@; \
-
fi
-
+
lex.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h interpret.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h lex_t.o: $(SRCDIR)/lex_t.c $(SRCDIR)/interpret_protos.h language.o: $(SRCDIR)/language.c $(SRCDIR)/object.h $(SRCDIR)/interpret.h $(SRCDIR)/program.h
-
$(SRCDIR)/language.h
.
src: $(SRCDIR)/language.yacc
+
$(SRCDIR)/language.h
_
src: $(SRCDIR)/language.yacc
@echo "Expect 1 shift/reduce conflict." ( cd $(SRCDIR) &&\ $(YACC) $(YFLAGS) language.yacc &&\ mv y.tab.c language.c &&\
-
mv y.tab.h language.h
.
src )
+
mv y.tab.h language.h
_
src )
-
$(SRCDIR)/language.
h
: $(SRCDIR)/language.
h.src
-
@if
if test -f $@; then cmp -s
$(SRCDIR)/language.
h.src $@; else false; fi; then \
-
echo "No changes in $@ - leaving old"; \
-
else \
-
echo "cp $(SRCDIR)/language.h.src $@"; \
-
cp $(SRCDIR)/language.h.src $@; \
-
fi
+
$(SRCDIR)/language.
c
: $(SRCDIR)/language.
yacc
+
touch
$(SRCDIR)/language.
c
-
$(SRCDIR)/language.c: $(SRCDIR)/language.h
-
-
+
# # This rule makes sure that builtin.c is created in the source dir. # $(SRCDIR)/builtin.c: $(SRCDIR)/builtin.cmod ./precompile.sh $(TMP_BINDIR)/precompile.pike # Internal testing target run_yacc: $(SRCDIR)/language.c modules/modlist.h: $(MODULE_REQUIREMENTS) @( cd modules ; rm remake >/dev/null 2>&1 || : ; \