From 63235a6c301aab0a11d9ded52da461b573712d2d Mon Sep 17 00:00:00 2001 From: gdr Date: Thu, 30 Oct 1997 04:26:58 +0000 Subject: [PATCH] extract release target out to a different file --- binrelease.mk | 22 ++++++++++++++++++++++ prog.mk | 12 ++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 binrelease.mk diff --git a/binrelease.mk b/binrelease.mk new file mode 100644 index 0000000..e43a823 --- /dev/null +++ b/binrelease.mk @@ -0,0 +1,22 @@ +# +# Default 'release' and 'install' rules. These are intended for +# typical user programs. They are likely not suitable for system +# daemons, etc. +# +# $Id: binrelease.mk,v 1.1 1997/10/30 04:26:58 gdr Exp $ +# + +# Place files where they will subsequently be archived in a binary +# distribution. +release: $(PROG) $(PROG).1 $(DESC) + $(INSTALL) -d $(RELBIN) $(RELMAN)/man1 $(DESC_DIR) + $(INSTALL) $(PROG) $(RELBIN) + $(INSTALL) $(PROG).1 $(RELMAN)/man1 + $(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC) + +# Install files into a live system. This doesn't update the describe +# database. +install: $(PROG) $(PROG).1 $(DESC) + $(INSTALL) -d $(BINDIR) $(MANDIR)/man1 $(DESC_DIR) + $(INSTALL) $(PROG) $(BINDIR) + $(INSTALL) $(PROG).1 $(MANDIR)/man1 diff --git a/prog.mk b/prog.mk index 6e22f02..4a54df5 100644 --- a/prog.mk +++ b/prog.mk @@ -1,7 +1,7 @@ # # prog.mk version 1.1.0 (August 31, 1997) # -# $Id: prog.mk,v 1.3 1997/09/26 06:11:07 gdr Exp $ +# $Id: prog.mk,v 1.4 1997/10/30 04:26:58 gdr Exp $ # # This makefile is intended for use with dmake(1) and occ(1) on Apple IIGS @@ -84,10 +84,6 @@ RELMAN = $(RELEASE_DIR)$(MANDIR) .INCLUDE: /src/gno/binrules.mk -# Place files where they will subsequently be archived in a binary -# distribution. -release: $(PROG) $(PROG).1 $(DESC) - $(INSTALL) -d $(RELBIN) $(RELMAN)/man1 $(DESC_DIR) - $(INSTALL) $(PROG) $(RELBIN) - $(INSTALL) $(PROG).1 $(RELMAN)/man1 - $(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC) +.IF $(CUSTOM_RELEASE) == $(NULL) +.INCLUDE: /src/gno/binrelease.mk +.END