Commit | Line | Data |
---|---|---|
5ff67f98 | 1 | # |
373f9ffb KB |
2 | # Copyright (c) 1988 Regents of the University of California. |
3 | # All rights reserved. | |
5ff67f98 | 4 | # |
373f9ffb | 5 | # Redistribution and use in source and binary forms are permitted |
2124b336 KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
373f9ffb | 16 | # |
7abf8d65 | 17 | # @(#)Makefile 5.8 (Berkeley) %G% |
0a083259 SL |
18 | # |
19 | CFLAGS= -O | |
51a16129 KB |
20 | LIBC= /lib/libc.a |
21 | SRCS= more.c | |
02e7f6e2 KB |
22 | OBJS= |
23 | MAN= more.0 | |
0a083259 | 24 | |
51a16129 | 25 | all: more |
0a083259 | 26 | |
624d69fc KB |
27 | more: ${LIBC} |
28 | ${CC} -o $@ $@.c ${CFLAGS} -ltermcap | |
51a16129 | 29 | |
02e7f6e2 | 30 | clean: |
51a16129 KB |
31 | rm -f ${OBJS} core more |
32 | ||
02e7f6e2 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
51a16129 KB |
37 | mkdep ${CFLAGS} ${SRCS} |
38 | ||
02e7f6e2 | 39 | install: ${MAN} |
624d69fc KB |
40 | install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/old |
41 | rm -f ${DESTDIR}/usr/old/page | |
42 | ln ${DESTDIR}/usr/old/more ${DESTDIR}/usr/old/page | |
7abf8d65 | 43 | install -c -o bin -g bin -m 644 more.help ${DESTDIR}/usr/share/misc |
624d69fc KB |
44 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat.old |
45 | rm -f ${DESTDIR}/usr/man/cat.old/page.0 | |
46 | ln ${DESTDIR}/usr/man/cat.old/more.0 ${DESTDIR}/usr/man/cat.old/page.0 | |
51a16129 | 47 | |
02e7f6e2 | 48 | lint: ${SRCS} |
51a16129 KB |
49 | lint ${CFLAGS} ${SRCS} |
50 | ||
02e7f6e2 | 51 | tags: ${SRCS} |
51a16129 | 52 | ctags ${SRCS} |