]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly GNUmakefile.~88~
authorRoland McGrath <roland@redhat.com>
Tue, 12 Jan 1993 22:51:00 +0000 (22:51 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 12 Jan 1993 22:51:00 +0000 (22:51 +0000)
GNUmakefile

index c80ac2be1080d77efdf34547d70869bfb24c48d5..3796dd264efe94eec3eaf711e4d9d30e006bbc4a 100644 (file)
@@ -89,7 +89,7 @@ $(archpfx)remote.o: remote.c
 $(archpfx)remote.dep: remote.c
        $(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
 
-CPPFLAGS := -I$(ARCH) $(CPPFLAGS) $(filter-out @%@,$(defines))
+CPPFLAGS := -I$(ARCH) $(CPPFLAGS) -DHAVE_CONFIG_H $(filter-out @%@,$(defines))
 
 ifneq "$(wildcard $(ARCH)/makefile)" ""
 include $(ARCH)/makefile
@@ -178,8 +178,16 @@ ETAGS = etags -T # for v19 etags
 .PHONY: tests
 testdir := $(shell ls -d1 make-test-?.? | sort -n +0.10 -0.11 +0.12 | tail -1l)
 tests:# $(testdir)/run_make_tests.pl $(prog)
-#      cd $(<D); perl $(<F)
-
+#      cd $(<D); MAKELEVEL=0 perl $(<F)
+
+build.sh.in: build.template
+       sed -e 's@%objs%@$(filter-out $(GLOB) $(ALLOCA) $(extras),\
+              $(patsubst $(archpfx)%,%,$(objs)))@'  \
+           -e 's@%globobjs%@$(patsubst %.c,%.o,\
+              $(filter %.c,$(notdir $(globfiles))))@' \
+           $< > $@.new
+       mv -f $@.new $@
+\f
 # Make the distribution tar files.
 
 .PHONY: dist
@@ -225,7 +233,7 @@ endef
 make-doc-$(version).tar.Z: README-doc COPYING make.dvi make.info make.info*
        $(make-tar)
 make-$(version).tar.Z: README INSTALL COPYING ChangeLog NEWS \
-          configure Makefile.in configure.in \
+          configure Makefile.in configure.in build.sh.in \
          $(srcs) remote-*.c $(globfiles) \
          make.texinfo gpl.texinfo make-stds.texi \
          make.?? make.??s make.toc make.aux make.man texinfo.tex TAGS tags