DESTDIR, clean junk
authorJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Thu, 15 May 1986 20:29:49 +0000 (12:29 -0800)
committerJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Thu, 15 May 1986 20:29:49 +0000 (12:29 -0800)
SCCS-vsn: games/cribbage/Makefile 5.2

usr/src/games/cribbage/Makefile

index b909a89..f84f8ea 100644 (file)
@@ -12,6 +12,7 @@ OBJS= extern.o crib.o support.o cards.o score.o io.o
 CFILES=        extern.c crib.c support.c cards.c score.c io.c
 TOBJS= test.o cards.o score.o io.o extern.o
 CFLAGS=        -O
 CFILES=        extern.c crib.c support.c cards.c score.c io.c
 TOBJS= test.o cards.o score.o io.o extern.o
 CFLAGS=        -O
+DESTDIR=
 
 cribbage:      ${OBJS}
        ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
 
 cribbage:      ${OBJS}
        ${CC} ${CFLAGS} -o cribbage ${OBJS} -lcurses -ltermlib
@@ -32,7 +33,7 @@ tags: ${HDRS} ${CFILES}
        sort tags -o tags
 
 clean:
        sort tags -o tags
 
 clean:
-       rm -f ${OBJS} ? a.out core crib.instr cribbage
+       rm -f ${OBJS} ? a.out core crib.instr cribbage errs
 
 crib.o:                deck.h  cribbage.h      cribcur.h
 support.o:     deck.h  cribbage.h      cribcur.h
 
 crib.o:                deck.h  cribbage.h      cribcur.h
 support.o:     deck.h  cribbage.h      cribcur.h
@@ -42,5 +43,5 @@ score.o:      deck.h
 io.o:          deck.h                  cribcur.h
 
 install: cribbage crib.instr
 io.o:          deck.h                  cribcur.h
 
 install: cribbage crib.instr
-       install -c -s cribbage /usr/games/
-       install -c crib.instr /usr/games/lib/
+       install -s cribbage $(DESTDIR)/usr/games
+       install -m 644 crib.instr $(DESTDIR)/usr/games/lib