summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1997-08-27 20:30:54 +0000
committerPaul Smith <psmith@gnu.org>1997-08-27 20:30:54 +0000
commitbe3fb0ae6d6870dbc1b4d03447afcf3b0fed3114 (patch)
treef27c2e1c6f3e1f7cc747cad0452734c4c917b208 /maintMakefile
parentdd0c939e781596fec17f8c72cbe6e3559e703fd8 (diff)
downloadgunmake-be3fb0ae6d6870dbc1b4d03447afcf3b0fed3114.tar.gz
Updates for GNU make 3.75.92.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile22
1 files changed, 20 insertions, 2 deletions
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