[svn] commit: r641 - /branches/parkinglot/Makefile.am
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 29 18:48:24 UTC 2010
Author: jelte
Date: Fri Jan 29 18:48:24 2010
New Revision: 641
Log:
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)
Modified:
branches/parkinglot/Makefile.am
Modified: branches/parkinglot/Makefile.am
==============================================================================
--- branches/parkinglot/Makefile.am (original)
+++ branches/parkinglot/Makefile.am Fri Jan 29 18:48:24 2010
@@ -47,11 +47,14 @@
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
More information about the bind10-changes
mailing list