summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-04-21 22:35:15 +0000
committerRoland McGrath <roland@redhat.com>1994-04-21 22:35:15 +0000
commitcf63c0c966b6cf04cbe4bba922f97d7dadd4458f (patch)
tree5793f9c3b279819ac8dee80786ccd082676f1cd2
parentd2e496cc01cfa31f6e32c2b15ac44bbfd8e9c061 (diff)
downloadgunmake-cf63c0c966b6cf04cbe4bba922f97d7dadd4458f.tar.gz
(dist): Depend on rcs-mark first.
(rcs-mark): New target. (rcs-mark-alpha, rcs-mark-beta): Use $(version-); append : to name for -N. (version-): New variable, removes dots (RCS doesn't like) from $(version).
-rw-r--r--GNUmakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 58fe126..d475181 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -210,17 +210,18 @@ tarfiles := make # make-doc
tarfiles := $(addsuffix -$(version).tar,$(tarfiles))
tarfiles := $(tarfiles:%=%.gz) # no more compress $(tarfiles:%=%.Z)
# Depend on default and doc so we don't ship anything that won't compile.
-dist: default info dvi tests tarfiles
+dist: rcs-mark default info dvi tests tarfiles
.PHONY: tarfiles
tarfiles: $(tarfiles)
ifndef dist-flavor
dist-flavor = alpha
endif
-.PHONY: rcs-mark-alpha rcs-mark-beta
-dist: rcs-mark-$(dist-flavor)
-rcs-mark-alpha:;rcs -sAlpha -Nmake-$(version) RCS/[!=]*,v
-rcs-mark-beta:;rcs -sBeta -Nmake-$(version) RCS/[!=]*,v
+.PHONY: rcs-mark rcs-mark-alpha rcs-mark-beta
+rcs-mark: rcs-mark-$(dist-flavor)
+rcs-mark-alpha:;rcs -sAlpha -Nmake-$(version-): RCS/[!=]*,v
+rcs-mark-beta:;rcs -sBeta -Nmake-$(version-): RCS/[!=]*,v
+version- = $(subst .,-,$(version))
dist: local-inst
.PHONY: local-inst