forked from kame/kame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (53 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
TARGET?= bogus
DEVELOPER= NO
.if ${DEVELOPER} == "YES"
CVSHOST= cvs.kame.net
.else
CVSHOST= anoncvs.kame.net
.endif
all:
@(echo '**** WARNING: Read through INSTALL and platform/INSTALL, '; \
echo ' and follow the steps documented'.; \
exit 1)
prepare::
(cd ${.CURDIR}; perl prepare.pl kame ${TARGET})
clean::
(cd ${.CURDIR}; find ${TARGET} -type l -print | perl -nle unlink)
# only for developers
bsdi3:
(cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
bsdi4:
(cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi4 -P kame/bsdi4)
PLAT= freebsd2 freebsd3 freebsd4 kame netbsd openbsd bsdi3 bsdi4
# DOCS is defined in Makefile.inc
TOOLS= Makefile Makefile.inc prepare.pl
update: update-doc update-plat
update-doc:
(cd ${.CURDIR}; cvs update -d -P ${DOCS} ${TOOLS})
update-plat:
(cd ${.CURDIR}; \
for i in kame ${TARGET}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
done)
update-all: update-doc
(cd ${.CURDIR}; \
for i in ${PLAT}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
done)
# % cvs co kame/Makefile kame/Makefile.inc
# % cd kame
# % make TARGET=foo tree
tree:
(cd ${.CURDIR}; \
$(MAKE) update-doc; \
if test $(TARGET) = bsdi3 -o $(TARGET) = bsdi4; then \
$(MAKE) $(TARGET); \
else \
cvs update -d -P $(TARGET); \
fi; \
cvs update -d -P kame)
.include "Makefile.inc"