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