Makefile:

- Simplify; a lot of the stuff this makefile did previously is
	  now available by including <prog.mk>.
This commit is contained in:
gdr-ftp 1999-01-11 01:25:43 +00:00
parent 2b00b1d41a
commit c77b46a12d

View File

@ -1,7 +1,7 @@
# #
# This makefile is intended for use with dmake(1) on Apple IIGS # This makefile is intended for use with dmake(1) on Apple IIGS
# #
# $Id: Makefile,v 1.2 1997/10/30 04:06:11 gdr Exp $ # $Id: Makefile,v 1.3 1999/01/11 01:25:43 gdr-ftp Exp $
# #
# Devin Reade, September 1997 # Devin Reade, September 1997
# #
@ -9,37 +9,20 @@
PROG = whereis PROG = whereis
BINDIR = /usr/bin BINDIR = /usr/bin
MANDIR = /usr/man
ETCDIR = /etc ETCDIR = /etc
OPTIMIZE= 78
STACK = 1024
LDLIBS = -l/usr/lib/libcontrib
.INCLUDE: /src/gno/paths.mk .INCLUDE: /src/gno/prog.mk
.INCLUDE: /src/gno/binconst.mk
RELBIN = $(RELEASE_DIR)$(BINDIR)
RELMAN = $(RELEASE_DIR)$(MANDIR)
RELETC = $(RELEASE_DIR)$(ETCDIR) RELETC = $(RELEASE_DIR)$(ETCDIR)
RELINC = $(RELEASE_DIR)/usr/include release:: $(RELETC) whereis.conf
RELLIB = $(RELEASE_DIR)/usr/lib
OBJS = $(SRCS:s/.c/.o/:f)
OPTIMIZE = 78
STACK = 1024
# Use -D__STACK_CHECK__ to see stack usage
DEFINES +=
INCLUDES += -I$(RELINC)
CFLAGS += -r $(INCLUDES) -O$(OPTIMIZE) $(DEFINES) -s$(STACK)
LDLIBS += -l$(RELLIB)/libcontrib
.INCLUDE: /src/gno/binrules.mk
release: $(PROG) $(PROG).1 $(DESC) whereis.conf
$(INSTALL) -d $(RELBIN) $(RELMAN)/man1 $(DESC_DIR) $(RELETC)
$(INSTALL) $(PROG) $(RELBIN)
$(INSTALL) $(PROG).1 $(RELMAN)/man1
$(INSTALL) whereis.conf $(RELETC) $(INSTALL) whereis.conf $(RELETC)
$(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC)
$(RELETC):
$(INSTALL) -d $(RELETC)
# Don't install whereis.conf into a running system; we don't want to
# overwrite the one that's been customized for this site.