|
|
1.1 root 1: #
2: # Copyright (c) 1980 Regents of the University of California.
3: # All rights reserved. The Berkeley software License Agreement
4: # specifies the terms and conditions for redistribution.
5: #
6: # @(#)Makefile 5.4 (Berkeley) 9/8/85
7: #
8: DESTDIR=
9: CFLAGS= -O
10: SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c
11: OBJS= indent.o io.o lexi.o parse.o pr_comment.o args.o
12:
13: indent: ${OBJS}
14: cc ${CFLAGS} -o indent ${OBJS}
15:
16: clean:
17: rm -f ${OBJS} indent core
18:
19: .DEFAULT:
20: sccs get $<
21:
22: install: indent
23: install -s indent ${DESTDIR}/usr/ucb/indent
24:
25: depend:
26: cc -M ${SRCS} | \
27: awk '{ if ($$1 != prev) { if (rec != "") print rec; \
28: rec = $$0; prev = $$1; } \
29: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
30: else rec = rec " " $$2 } } \
31: END { print rec }' >makedep
32: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
33: echo '$$r makedep' >> eddep
34: echo 'w' >>eddep
35: cp Makefile Makefile.bak
36: ed - Makefile < eddep
37: rm eddep makedep
38: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
39: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
40: echo '# see make depend above' >> Makefile
41:
42: # DO NOT DELETE THIS LINE -- make depend uses it
43:
44: indent.o: indent.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h
45: io.o: io.c ./indent_globs.h /usr/include/stdio.h
46: lexi.o: lexi.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h
47: lexi.o: /usr/include/ctype.h
48: parse.o: parse.c ././indent_globs.h /usr/include/stdio.h ././indent_codes.h
49: pr_comment.o: pr_comment.c ./indent_globs.h /usr/include/stdio.h
50: args.o: args.c ./indent_globs.h /usr/include/stdio.h /usr/include/sys/types.h
51: args.o: /usr/include/ctype.h
52: # DEPENDENCIES MUST END AT END OF FILE
53: # IF YOU PUT STUFF HERE IT WILL GO AWAY
54: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.