head     1.4;
branch   ;
access   ;
symbols  ;
locks    bin:1.4;
comment  @@;


1.4
date     91.06.13.14.35.38;  author bin;  state Exp;
branches ;
next     1.3;

1.3
date     91.06.13.14.11.03;  author bin;  state Exp;
branches ;
next     1.2;

1.2
date     91.06.13.14.07.04;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     91.06.07.18.24.12;  author bin;  state Exp;
branches ;
next     ;


desc
@init ver prov by piggy
@


1.4
log
@bob h corrected destdir problem
@
text
@# Makefile for checkperms, permissions checking interpreter
# part of uucheck the uucp sanity checker.
#
# Destination directory for installing executable files
BIN=../install/usr/lib/uucheck/
# Destination directory for installing data files
# BTW if LIB= anything other than /usr/lib/uucheck/, you will have to edit
# uucheck by hand.
LIB=../install/usr/lib/uucheck/
DESTDIR=/interim/usr/lib/uucheck/
OBJS=y.tab.o lex.yy.o main.o monitor.o hosts.o do_check.o messages.o \
	chmod_chk.o util.o parse_args.o copyright.o
LIBS=-ly -ll
YACC=yacc
LEX=lex
YACCFLAGS=
LEXFLAGS=
CFLAGS=-O -I..
#
checkperms:	$(OBJS)
	$(CC) -o $(DESTDIR)checkperms $(CFLAGS) $(OBJS) $(LIBS)
	su root chmog 511 bin bin $(DESTDIR)$@@

y.tab.o:	checkperms.y
	$(YACC) $(YACCFLAGS) checkperms.y
	$(CC) -c $(CFLAGS) y.tab.c

lex.yy.o:	checkperms.lex
	$(LEX) $(LEXFLAGS) checkperms.lex
	$(CC) -c $(CFLAGS) lex.yy.c

main.o:	checkperms.h monitor.h ../uucheck.h

parse_args.o: ../parse_args.c

copyright.o: ../copyright.c

install:
	cp -d checkperms $(BIN)/uucheckperms
	cp -d uucp.perms $(LIB)
	chown bin $(BIN)/uucheckperms $(LIB)/uucp.perms
	chgrp bin $(BIN)/uucheckperms $(LIB)/uucp.perms

clean:
	rm -f $(OBJS) y.tab.c y.tab.h lex.yy.c core

@


1.3
log
@bob h added destdir
@
text
@d10 1
a10 1
DESDTIR=/usr/lib/uucheck/
@


1.2
log
@update by piggy
@
text
@d10 1
a10 1

d21 2
a22 1
	$(CC) -o checkperms $(CFLAGS) $(OBJS) $(LIBS)
@


1.1
log
@Initial revision
@
text
@d5 1
a5 1
BIN=/usr/lib/uucheck/
d9 1
a9 1
LIB=/usr/lib/uucheck/
d33 1
a33 3
install: checkperms
	cp checkperms $(BIN)uucheckperms
	cp uucp.perms $(LIB)
d35 8
@
