1# $MirOS: src/gnu/usr.bin/rcs/Makefile,v 1.2 2005/04/19 21:30:31 tg Exp $
2
3.include <bsd.own.mk>
4
5  PROGS+= ci
6  PROGS+= co
7  PROGS+= ident
8  PROGS+= merge
9  PROGS+= rcs
10  PROGS+= rcsclean
11  PROGS+= rcsdiff
12  PROGS+= rcsfreeze
13  PROGS+= rcsmerge
14  PROGS+= rlog
15
16  SUBDIR+= lib
17  SUBDIR+= ${PROGS}
18.if ${NOMAN:L} == "no"
19  SUBDIR+= man
20.endif
21.if make(install)
22  SUBDIR+= paper
23.else
24  SUBDIR+= getdate
25.endif
26
27VERBOSE=
28
29check:
30	mkdir -p test; \
31	    for i in ${PROGS}; do \
32		ln -f $$i/$$i test/; \
33	    done; \
34	    cd test; \
35	    PATH=".:$$PATH" CC="${CC}" ALL_CFLAGS="${CFLAGS} ${COPTS}" \
36	    ${SHELL} ${.CURDIR}/src/rcstest ${VERBOSE} 2>&1
37	-rm -rf test
38	@echo Check successful.
39
40check-v:
41	cd ${.CURDIR} && ${MAKE} check VERBOSE=-v
42
43.include <bsd.obj.mk>
44.include <bsd.subdir.mk>
45