xref: /original-bsd/old/arff/Makefile (revision 9eb838fd)
1#
2# Copyright (c) 1988 Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation, advertising
8# materials, and other materials related to such redistribution and
9# use acknowledge that the software was developed by the University
10# of California, Berkeley.  The name of the University may not be
11# used to endorse or promote products derived from this software
12# without specific prior written permission.  THIS SOFTWARE IS PROVIDED
13# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
14# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
15# FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile	5.2 (Berkeley) 05/11/89
18#
19
20CFLAGS=	-O
21LIBC=	/lib/libc.a
22SRCS=	arff.c
23OBJS=
24MAN=	arff.0
25
26all: arff flcopy
27
28arff: ${LIBC}
29	${CC} -o $@ ${CFLAGS} $@.c
30
31flcopy: ${LIBC}
32	${CC} -o $@ ${CFLAGS} $@.c
33
34clean:
35	rm -f ${OBJS} core arff flcopy
36
37cleandir: clean
38	rm -f ${MAN} tags .depend
39
40depend: ${SRCS}
41	mkdep -p ${CFLAGS} ${SRCS}
42
43install: ${MAN}
44	install -s -o bin -g bin -m 755 arff ${DESTDIR}/usr/sbin
45	install -s -o bin -g bin -m 755 flcopy ${DESTDIR}/usr/sbin
46	install -c -o bin -g bin -m 444 arff.0 ${DESTDIR}/usr/man/cat8/vax
47	rm -f ${DESTDIR}/usr/man/cat8/vax/flcopy.0
48	ln ${DESTDIR}/usr/man/cat8/vax/arff.0 ${DESTDIR}/usr/man/cat8/vax/flcopy.0
49
50lint: ${SRCS}
51	lint ${CFLAGS} ${SRCS}
52
53tags: ${SRCS}
54	ctags ${SRCS}
55