Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add clean target, which nukes symlinks.

  • Loading branch information...
commit 880631884e949884688d7b81fed2ff30ed62e131 1 parent 659f88f
itojun authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 Makefile
View
9 Makefile
@@ -3,6 +3,9 @@ TARGET?= netbsd
prepare::
perl prepare.pl kame ${TARGET}
+clean::
+ find ${TARGET} -type l -print | perl -nle unlink
+
# only for developers
bsdi3:
(set CVSROOT=cvs.kame.net/cvsroot/kame-local; export CVSROOT; cvs -d cvs.kame.net:/cvsroot/kame-local co -d bsdi3 -P kame/bsdi3)
@@ -17,15 +20,15 @@ PLAT= freebsd2 freebsd3 kame netbsd openbsd
update: update-doc update-plat
update-doc:
- cvs update -d -P $(DOC)
+ cvs update -d -P ${DOC}
update-plat:
- for i in kame $(TARGET); do \
+ for i in kame ${TARGET}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
done
update-all: update-doc
- for i in $(PLAT); do \
+ for i in ${PLAT}; do \
if test -d $$i; then \
(cd $$i; cvs update -d -P); \
fi \
Please sign in to comment.
Something went wrong with that request. Please try again.