]> granicus.if.org Git - file/commitdiff
Update commentary on "-g"; change MANDIR to default to MAN5.
authorIan Darwin <ian@darwinsys.com>
Fri, 19 Feb 1993 14:11:26 +0000 (14:11 +0000)
committerIan Darwin <ian@darwinsys.com>
Fri, 19 Feb 1993 14:11:26 +0000 (14:11 +0000)
Add Localstuff and Header to dist list for Magdir. Add ftp, patchlevel,
and new rules.

src/Makefile

index 6337e39949b815b1137905a2dc6a2a9c290fb927..0740c8e6c165a0763a5c87bf5e52dcaaaee55e44 100644 (file)
@@ -1,6 +1,6 @@
 # Makefile for file(1) cmd. 
 # Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE.
-# @(#)$Id: Makefile,v 1.30 1992/09/11 11:55:35 ian Exp $
+# @(#)$Id: Makefile,v 1.31 1993/02/19 14:11:26 ian Exp $
 #
 # This software is not subject to any license of the American Telephone
 # and Telegraph Company or of the Regents of the University of California.
@@ -27,9 +27,9 @@ SHELL = /bin/sh
 MAGIC  = /usr/local/etc/magic
 DEFS   = -DMAGIC='"$(MAGIC)"' # -Dvoid=int
 CC     = cc
-COPTS  = -O # -g               # gcc allows both
+COPTS  = -O -g         # newer compilers allow both; else drop -O
 # For truly antique environments, use this for (dummy) include files:
-#COPTS = -O -Ilocalinc
+COPTS  = -O # -Ilocalinc
 CFLAGS = $(COPTS) $(DEFS)
 LDFLAGS        = $(COPTS) # -Bstatic   # older gdb couldn't handle shared libs
 SHAR   = bundle
@@ -55,9 +55,9 @@ BINDIR        = /usr/local/bin
 # MANCEXT                      1
 
 MANCDIR        = /usr/local/man/man1
-MANFDIR        = /usr/local/man/man5
 MANCEXT        = 1
-MANFEXT        = 5
+MANFDIR        = /usr/local/man/man4
+MANFEXT        = 4
 
 # There are no system-dependant configuration options (except maybe CFLAGS).
 # Uncomment any of these that is missing from your "standard" library.
@@ -78,7 +78,7 @@ OBJS = file.o apprentice.o fsmagic.o softmagic.o ascmagic.o \
 
 ALLSRC = LEGAL.NOTICE README MAINT PORTING $(SRCS) *.h \
        Makefile file.1 magic.4 tst/Makefile
-ALLMAGIC =   Magdir/Makefile Magdir/[a-z]* # NEWMAGIC
+ALLMAGIC =   Magdir/Makefile Magdir/Localstuff Magdir/Header Magdir/[a-z]*
 
 all:           file magic
 
@@ -113,7 +113,12 @@ clean:
 clobber:
                cd tst; make clean
 
+send:          dist
+               ftp ftp.cs
+
 dist:          dist.src dist.magic
+               @echo Now check this patchlevel!
+               ident patchlevel.h
 
 dist.src:      $(ALLSRC) TARGETS
 #              Some versions of shar can't handle a single file from
@@ -122,6 +127,10 @@ dist.src:  $(ALLSRC) TARGETS
                (echo mkdir localinc localinc/sys localsrc tst; \
                        $(SHAR) $(ALLSRC) TARGETS) > $@
 
+new:           $(ALLSRC)
+               echo $?
+               touch new
+
 TARGETS:       $(ALLSRC)
                ident $(ALLSRC) > TARGETS
 dist.magic:    Magdir