Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (53 sloc) 1.658 kb
1f8d743 make default TARGET to "bogus" to raise errors on all platforms.
itojun authored
1 TARGET?= bogus
8714844 support .prepare file.
itojun authored
2
c0a2c52 non-developer should use anoncvs.kame.net (need more work for migration....
itojun authored
3 DEVELOPER= NO
4 .if ${DEVELOPER} == "YES"
5 CVSHOST= cvs.kame.net
6 .else
7 CVSHOST= anoncvs.kame.net
8 .endif
9
5bd5efb warn if the user simply typed in "make".
itojun authored
10 all:
11 @(echo '**** WARNING: Read through INSTALL and platform/INSTALL, '; \
12 echo ' and follow the steps documented'.; \
13 exit 1)
14
8714844 support .prepare file.
itojun authored
15 prepare::
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
16 (cd ${.CURDIR}; perl prepare.pl kame ${TARGET})
c8c621c add targets: bsdi3 and bsdi4
itojun authored
17
8806318 add clean target, which nukes symlinks.
itojun authored
18 clean::
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
19 (cd ${.CURDIR}; find ${TARGET} -type l -print | perl -nle unlink)
8806318 add clean target, which nukes symlinks.
itojun authored
20
c8c621c add targets: bsdi3 and bsdi4
itojun authored
21 # only for developers
22 bsdi3:
480d7f3 add branch tag (stable_200004)
itojun authored
23 (cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -r stable_200004 -d bsdi3 -P kame/bsdi3)
c8c621c add targets: bsdi3 and bsdi4
itojun authored
24
25 bsdi4:
480d7f3 add branch tag (stable_200004)
itojun authored
26 (cd ${.CURDIR}; set CVSROOT=cvs.kame.net:/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -r stable_200004 -d bsdi4 -P kame/bsdi4)
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
27
5f6b037 remove freebsd4.
itojun authored
28 PLAT= freebsd2 freebsd3 kame netbsd openbsd bsdi3 bsdi4
b418f57 share definition of DOCS between top-level Makefile and platform/Makefil...
itojun authored
29 # DOCS is defined in Makefile.inc
30 TOOLS= Makefile Makefile.inc prepare.pl
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
31
32 update: update-doc update-plat
33 update-doc:
480d7f3 add branch tag (stable_200004)
itojun authored
34 (cd ${.CURDIR}; cvs update -r stable_200004 -d -P ${DOCS} ${TOOLS})
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
35 update-plat:
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
36 (cd ${.CURDIR}; \
8806318 add clean target, which nukes symlinks.
itojun authored
37 for i in kame ${TARGET}; do \
659f88f "make update-plat" will update kame/kame and kame/TARGET.
itojun authored
38 if test -d $$i; then \
480d7f3 add branch tag (stable_200004)
itojun authored
39 (cd $$i; cvs update -r stable_200004 -d -P); \
659f88f "make update-plat" will update kame/kame and kame/TARGET.
itojun authored
40 fi \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
41 done)
659f88f "make update-plat" will update kame/kame and kame/TARGET.
itojun authored
42 update-all: update-doc
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
43 (cd ${.CURDIR}; \
8806318 add clean target, which nukes symlinks.
itojun authored
44 for i in ${PLAT}; do \
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
45 if test -d $$i; then \
480d7f3 add branch tag (stable_200004)
itojun authored
46 (cd $$i; cvs update -r stable_200004 -d -P); \
273f315 "update", "update-doc" and "update-plat" targets.
itojun authored
47 fi \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
48 done)
a5f1873 "make tree" which ease the checkout process (as well as tar.gz generatio...
itojun authored
49
480d7f3 add branch tag (stable_200004)
itojun authored
50 # % cvs co -r stable_200004 kame/Makefile kame/Makefile.inc
a5f1873 "make tree" which ease the checkout process (as well as tar.gz generatio...
itojun authored
51 # % cd kame
52 # % make TARGET=foo tree
53 tree:
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
54 (cd ${.CURDIR}; \
55 $(MAKE) update-doc; \
a5f1873 "make tree" which ease the checkout process (as well as tar.gz generatio...
itojun authored
56 if test $(TARGET) = bsdi3 -o $(TARGET) = bsdi4; then \
57 $(MAKE) $(TARGET); \
58 else \
480d7f3 add branch tag (stable_200004)
itojun authored
59 cvs update -r stable_200004 -d -P $(TARGET); \
d536b60 add "cd .CURDIR" to all cvs operations-what a mess!
itojun authored
60 fi; \
480d7f3 add branch tag (stable_200004)
itojun authored
61 cvs update -r stable_200004 -d -P kame)
b418f57 share definition of DOCS between top-level Makefile and platform/Makefil...
itojun authored
62
63 .include "Makefile.inc"
Something went wrong with that request. Please try again.