From be3fb0ae6d6870dbc1b4d03447afcf3b0fed3114 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 27 Aug 1997 20:30:54 +0000 Subject: Updates for GNU make 3.75.92. --- maintMakefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'maintMakefile') diff --git a/maintMakefile b/maintMakefile index aeb5616..1fcd09e 100644 --- a/maintMakefile +++ b/maintMakefile @@ -5,12 +5,30 @@ # Find the glob source files... this might be dangerous, but we're maintainers! # globsrc := $(wildcard glob/*.c) +globhdr := $(wildcard glob/*.h) + +TEMPLATES = README config.ami configh.dos config.h.W32 config.h-vms # General rule for turning a .template into a regular file. # -README : % : %.template configure.in +$(TEMPLATES) : % : %.template configure.in + rm -f $@ + sed -e 's@%VERSION%@$(VERSION)@' \ + -e 's@%PACKAGE%@$(PACKAGE)@' \ + $< > $@ + chmod a-w $@ + +# Construct Makefile.DOS +# +Makefile.DOS: Makefile.DOS.template Makefile.am configure.in rm -f $@ - sed 's/%VERSION%/$(version)/' < $< > $@ + sed -e 's@%VERSION%@$(VERSION)@' \ + -e 's@%PROGRAMS%@$(bin_PROGRAMS)@' \ + -e 's@%SOURCES%@$(filter-out remote-%,$(make_SOURCES)) remote-$$(REMOTE).c@' \ + -e 's@%OBJECTS%@$(filter-out remote-%,$(make_OBJECTS)) remote-$$(REMOTE).o@' \ + -e 's@%GLOB_SOURCES%@$(globsrc) $(globhdr)@' \ + -e 's@%GLOB_OBJECTS%@$(globsrc:glob/%.c=%.o)@' \ + $< > $@ chmod a-w $@ # Construct build.sh.in -- cgit v1.2.3