summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1997-08-18 18:11:04 +0000
committerPaul Smith <psmith@gnu.org>1997-08-18 18:11:04 +0000
commit63dff1e0bcb9e1bdd189e4a3e0d6126389251885 (patch)
treef8b39c21a6c709622d4fcc18f40539477a5ceb1a /maintMakefile
parente746a9c9510b2cc83548e8d9108eb24540e7a821 (diff)
downloadgunmake-63dff1e0bcb9e1bdd189e4a3e0d6126389251885.tar.gz
Bug fixes and automake changes.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/maintMakefile b/maintMakefile
new file mode 100644
index 0000000..aeb5616
--- /dev/null
+++ b/maintMakefile
@@ -0,0 +1,33 @@
+# Maintainer-only makefile segment. This contains things that are relevant
+# only if you have the full copy of the GNU make sources, not a dist copy.
+#
+
+# Find the glob source files... this might be dangerous, but we're maintainers!
+#
+globsrc := $(wildcard glob/*.c)
+
+# General rule for turning a .template into a regular file.
+#
+README : % : %.template configure.in
+ rm -f $@
+ sed 's/%VERSION%/$(version)/' < $< > $@
+ chmod a-w $@
+
+# Construct build.sh.in
+#
+build.sh.in: build.template Makefile.am
+ rm -f $@
+ sed -e 's@%objs%@$(filter-out remote-%, $(make_OBJECTS)\
+ $(patsubst %.c,%.o,$(globsrc)))@' \
+ $< > $@
+ chmod a-w+x $@
+
+# Put the alpha distribution files up for anonymous FTP.
+#
+ALPHA := ~ftp/gnu
+TARFILE := $(distdir).tar.gz
+
+.PHONY: alpha
+alpha: $(ALPHA) $(TARFILE)
+ @rm -f $(ALPHA)/$(TARFILE)
+ cp -p $(TARFILE) $(ALPHA)