Commit 5808c100 authored by Jelte Jansen's avatar Jelte Jansen

make clean-local a bit smarter (check if the directories exist, remove all...

make clean-local a bit smarter (check if the directories exist, remove all symlinks in there even the ones we didn't create ourselves, so if we ever remove one old make cleans won't fail, and use -f for rm so it also won't fail if we add a new one)
the 'forward' targets might also need smartness like this (if we add one we'll have to make clean to have make create them right now)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@641 e5f2f494-b856-4b98-b285-d166d9295462
parent 0d21336a
......@@ -47,11 +47,14 @@ stree_symlinks: pyshared include
all: stree_symlinks
clean-local:
rm pyshared/isc/config
rm pyshared/isc/cc
rmdir pyshared/isc
rmdir pyshared
rm include/cc
rm include/config
rm include/dns
rmdir include
@if [ -d pyshared/isc ] ; then \
rm -f pyshared/isc/*; \
rmdir pyshared/isc; \
fi
@if [ -d pyshared ]; then \
rmdir pyshared; \
fi
@if [ -d include ]; then \
rm -f include/*; \
rmdir include; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment