rm -f build-stamp
# Add here commands to clean up after the build process.
- -$(MAKE) distclean
+ [ ! -f Makefile ] || $(MAKE) distclean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
endif
rm -f $(CURDIR)/config.sub $(CURDIR)/config.guess
+
+ # If we're not in a mercurial repository, make sure no hg metadata is
+ # lying around
+ if ! [ -d .hg ]; then \
+ rm -f .hg*; \
+ fi
+
dh_clean
install: build