head     1.4;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.4
date     86.02.26.09.22.14;  author root;  state Exp;
branches ;
next     1.3;

1.3
date     86.02.26.09.17.26;  author root;  state Exp;
branches ;
next     1.2;

1.2
date     86.02.26.09.01.20;  author root;  state Exp;
branches ;
next     1.1;

1.1
date     86.02.26.08.57.29;  author root;  state Exp;
branches ;
next     ;


desc
@Walter Tichy's make program with RCS knowlege, as provided by Walter Tichy.
@


1.4
log
@added "make" to stuff to delete on make clean.
@
text
@# Description file for the Make command
# $Header: Makefile,v 1.3 86/02/26 09:17:26 root Exp $

CFLAGS = -O
LDFLAGS=
LINTFLAGS= -ps
BINDIR=	/bin
INSTALL= -install -s

OBJS=	main.o doname.o misc.o files.o dosys.o gram.o rules.o
IDENT=	version.o

all:	make

make:	$(OBJS) $(IDENT)
	$(CC) $(LDFLAGS) $(OBJS) $(IDENT) $(LIBES) -o make

install: make
	$(INSTALL) make $(DESTDIR)/$(BINDIR)

clean:
	$(RM) $(RMFLAGS) *.o gram.c ERRS errs core a.out make

lint :  defs.h doname.c dosys.c files.c main.c misc.c
	lint $(LINTFLAGS) doname.c dosys.c files.c main.c misc.c

$(OBJS):  defs.h
@


1.3
log
@added $(RMFLAGS) to clean rule.
@
text
@d2 1
a2 1
# $Header: Makefile,v 1.2 86/02/26 09:01:20 root Exp $
d22 1
a22 1
	$(RM) $(RMFLAGS) *.o gram.c ERRS errs core a.out
@


1.2
log
@removed extra lines that appeared to be local to Tichy's environment
@
text
@d2 1
a2 1
# $Header: Makefile,v 1.1 86/02/26 08:57:29 root Exp $
d22 1
a22 1
	$(RM) *.o gram.c ERRS errs core a.out
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Header: /usr/spool/uucppublic/make/Makefile,v 1.4 84/01/05 15:42:54 kcs Exp $
d6 2
a7 4
LINTFLAGS= -hp
BINDIR=	/usr/local/bin
PRINT=	lpr
CREF=	-cref
a8 1
RM=	-rm -f
a9 2
SOURCES=defs.h gram.y doname.c dosys.c files.c main.c misc.c rules.c version.c
FILES=	$(SOURCES)
a13 1
	@@echo "make is up to date"
d19 1
a19 1
	$(INSTALL) -m 771 -o binary make $(DESTDIR)/$(BINDIR)
a20 3
cmp:	make
	cmp make $(DESTDIR)/$(BINDIR)/make

d22 1
a22 2
	$(RM) *.o gram.c ERRS errs core a.out .,* .emacs*
	rcsclean $(SOURCES) defs.h
a23 15
printall: Makefile $(FILES)
	pr Makefile $(FILES) | $(PRINT)
	touch print

print:  $(FILES)	# print recently changed files
	pr $? | $(PRINT)
	touch print

crefall: $(FILES)
	$(CREF) $(FILES) | $(PRINT)
	touch cref

cref:	$(FILES)
	$(CREF) $? | $(PRINT)

a27 21

dist: Makefile $(FILES)
	flar make.dist Makefile $(FILES)

depend: $(SOURCES)
	maketd $(CFLAGS) $(SOURCES)

# DO NOT DELETE THIS LINE - make maketd DEPENDS ON IT
# Dependencies generated at: Mon Dec 12 10:14:28 EST 1983

defs.o:	
gram.o:	defs.h  
doname.o:	defs.h  
dosys.o:	defs.h  
files.o:	defs.h  
main.o:	defs.h  
misc.o:	defs.h  
rules.o:	defs.h  
version.o:	

# DO NOT ADD ANYTHING HERE - WILL GO AWAY
@
