file reorg, pathnames.h, paths.h
[unix-history] / usr / src / old / pcc / lint / Makefile
index 02411c0..ce417eb 100644 (file)
@@ -1,16 +1,17 @@
 #
 #
-#      @(#)Makefile    1.18    (Berkeley)      %G%
+#      @(#)Makefile    1.24    (Berkeley)      %G%
 #
 #
-M=/usr/src/lib/mip
-P=/usr/src/lib/pcc/pcc.${MACHINE}
+M=../../libexec/mip
+P=../../libexec/pcc
 CFLAGS=-O
 LINTLIBS=llib-port.ln llib-lc.ln llib-lcurses.ln llib-ldbm.ln llib-lm.ln \
        llib-lmp.ln llib-lplot.ln llib-ltermcap.ln
 SRCS=  $M/cgram.y $M/common.c $M/optim.c $M/pftn.c $M/scan.c $M/trees.c \
        $M/xdefs.c lint.c hash.c $M/pass1.h $M/manifest.h macdefs.h \
        lpass2.c
 CFLAGS=-O
 LINTLIBS=llib-port.ln llib-lc.ln llib-lcurses.ln llib-ldbm.ln llib-lm.ln \
        llib-lmp.ln llib-lplot.ln llib-ltermcap.ln
 SRCS=  $M/cgram.y $M/common.c $M/optim.c $M/pftn.c $M/scan.c $M/trees.c \
        $M/xdefs.c lint.c hash.c $M/pass1.h $M/manifest.h macdefs.h \
        lpass2.c
+MAN=   lint.0
 
 
-all:   lpass1 lpass2 ${LINTLIBS}
+all: lpass1 lpass2 ${LINTLIBS}
 
 lpass1: cgram.o rodata.o comm1.o optim.o pftn.o scan.o trees.o xdefs.o \
        lint.o hash.o rel.o
 
 lpass1: cgram.o rodata.o comm1.o optim.o pftn.o scan.o trees.o xdefs.o \
        lint.o hash.o rel.o
@@ -43,9 +44,6 @@ trees.o: $M/manifest.h macdefs.h $M/pass1.h pcclocal.h $M/trees.c
 xdefs.o: $M/manifest.h $M/pass1.h pcclocal.h macdefs.h $M/xdefs.c
        $(CC) -c $(CFLAGS) -I$M -I. $M/xdefs.c
 
 xdefs.o: $M/manifest.h $M/pass1.h pcclocal.h macdefs.h $M/xdefs.c
        $(CC) -c $(CFLAGS) -I$M -I. $M/xdefs.c
 
-rel.o: $P/rel.c
-       ${CC} -c ${CFLAGS} $P/rel.c
-
 rodata.c cgram.c: $M/cgram.y pcctokens
        cat pcctokens $M/cgram.y > gram.in
        $(YACC) gram.in
 rodata.c cgram.c: $M/cgram.y pcctokens
        cat pcctokens $M/cgram.y > gram.in
        $(YACC) gram.in
@@ -103,14 +101,14 @@ lintall:
        lint -hpv -I. -I$M  $M/cgram.c $M/xdefs.c $M/scan.c \
                $M/pftn.c $M/trees.c $M/optim.c lint.c
 
        lint -hpv -I. -I$M  $M/cgram.c $M/xdefs.c $M/scan.c \
                $M/pftn.c $M/trees.c $M/optim.c lint.c
 
-install: all SHELL
-       install -s -o bin -g src -m 755 lpass1 ${DESTDIR}/usr/lib/lint/lint1
-       install -s -o bin -g src -m 755 lpass2 ${DESTDIR}/usr/lib/lint/lint2
-       for i in llib-*; do install -c -o bin -g src -m 644 $$i ${DESTDIR}/usr/lib/lint; done
-       -rm -f ${DESTDIR}/usr/lib/lint/llib-ltermlib*
-       ln -s llib-ltermcap ${DESTDIR}/usr/lib/lint/llib-ltermlib
-       ln -s llib-ltermcap.ln ${DESTDIR}/usr/lib/lint/llib-ltermlib.ln
-       install -c -o bin -g src -m 755 SHELL ${DESTDIR}/usr/bin/lint
+install: all SHELL ${MAN}
+       install -s -o bin -g bin -m 755 lpass1 lpass2 /usr/libexec
+       install -c -o bin -g bin -m 444 llib-* /usr/libdata/lint
+       rm -f /usr/libdata/llib-ltermlib*
+       ln -s llib-ltermcap /usr/libdata/llib-ltermlib
+       ln -s llib-ltermcap.ln /usr/libdata/llib-ltermlib.ln
+       install -c -o bin -g bin -m 755 SHELL ${DESTDIR}/usr/bin/lint
+       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
 
 shrink:
        rm -f *.o errs rodata.c pcctokens pcclocal.h
 
 shrink:
        rm -f *.o errs rodata.c pcctokens pcclocal.h
@@ -118,7 +116,10 @@ shrink:
 clean: shrink
        rm -f lpass1 lpass2 cgram.c gram.in tags ${LINTLIBS}
 
 clean: shrink
        rm -f lpass1 lpass2 cgram.c gram.in tags ${LINTLIBS}
 
-tags:  ${SRCS}
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+tags: ${SRCS}
        ctags -w ${SRCS}
 
        ctags -w ${SRCS}
 
-depend:
+depend lint: