Reworked clean Makefile targets a bit (so the test/tmp dir doesn't belong to root after sudo maintainer-clean)

v0.27.3
Andreas Huggel 10 years ago
parent d41c4fcaab
commit efef7af344

@ -113,18 +113,17 @@ mostlyclean clean: config/config.mk
cd src && $(MAKE) $(MAKECMDGOALS) cd src && $(MAKE) $(MAKECMDGOALS)
cd doc && $(MAKE) $(MAKECMDGOALS) cd doc && $(MAKE) $(MAKECMDGOALS)
cd samples && $(MAKE) $(MAKECMDGOALS) cd samples && $(MAKE) $(MAKECMDGOALS)
cd test && $(MAKE) $(MAKECMDGOALS)
cd xmpsdk/src && $(MAKE) $(MAKECMDGOALS) cd xmpsdk/src && $(MAKE) $(MAKECMDGOALS)
cd config && $(MAKE) -f config.make $(MAKECMDGOALS) cd config && $(MAKE) -f config.make $(MAKECMDGOALS)
cd po && $(MAKE) $(MAKECMDGOALS) cd po && $(MAKE) $(MAKECMDGOALS)
rm -rf test/tmp include/exiv2/exv_conf.h src/svn_version.h rm -f include/exiv2/exv_conf.h src/svn_version.h
mkdir test/tmp
# `make distclean' also removes files created by configuring # `make distclean' also removes files created by configuring
# the program. Running `make all distclean' prepares the project # the program. Running `make all distclean' prepares the project
# for packaging. # for packaging.
distclean: clean distclean: clean
rm -f config.log config.status libtool rm -f config.log config.status libtool
rm -rf test/data/eps test/data/video
rm -f *~ *.bak rm -f *~ *.bak
if [ -e bin ]; then rm -rf bin ; fi if [ -e bin ]; then rm -rf bin ; fi

@ -113,18 +113,17 @@ mostlyclean clean: config/config.mk
cd src && $(MAKE) $(MAKECMDGOALS) cd src && $(MAKE) $(MAKECMDGOALS)
cd doc && $(MAKE) $(MAKECMDGOALS) cd doc && $(MAKE) $(MAKECMDGOALS)
cd samples && $(MAKE) $(MAKECMDGOALS) cd samples && $(MAKE) $(MAKECMDGOALS)
cd test && $(MAKE) $(MAKECMDGOALS)
cd xmpsdk/src && $(MAKE) $(MAKECMDGOALS) cd xmpsdk/src && $(MAKE) $(MAKECMDGOALS)
cd config && $(MAKE) -f config.make $(MAKECMDGOALS) cd config && $(MAKE) -f config.make $(MAKECMDGOALS)
cd po && $(MAKE) $(MAKECMDGOALS) cd po && $(MAKE) $(MAKECMDGOALS)
rm -rf test/tmp include/exiv2/exv_conf.h src/svn_version.h rm -f include/exiv2/exv_conf.h src/svn_version.h
mkdir test/tmp
# `make distclean' also removes files created by configuring # `make distclean' also removes files created by configuring
# the program. Running `make all distclean' prepares the project # the program. Running `make all distclean' prepares the project
# for packaging. # for packaging.
distclean: clean distclean: clean
rm -f config.log config.status libtool rm -f config.log config.status libtool
rm -rf test/data/eps test/data/video
rm -f *~ *.bak rm -f *~ *.bak
if [ -e bin ]; then rm -rf bin ; fi if [ -e bin ]; then rm -rf bin ; fi

@ -54,7 +54,7 @@ SHELL = /bin/sh
# ****************************************************************************** # ******************************************************************************
# Targets # Targets
.PHONY: all test testv teste clean distclean maintainer-clean .PHONY: all test testv teste mostlyclean clean distclean maintainer-clean
## ##
# to save download time for simple build/test, we download video and eps data on demand # to save download time for simple build/test, we download video and eps data on demand
@ -148,8 +148,8 @@ testx:
./$$p; \ ./$$p; \
done done
clean: mostlyclean clean:
rm -rf $(top_srcdir)/test/tmp/* data/video data/eps rm -rf $(top_srcdir)/test/tmp/*
distclean: clean distclean: clean
$(RM) *~ *.bak *# $(RM) *~ *.bak *#
@ -157,6 +157,7 @@ distclean: clean
# This command is intended for maintainers to use; it deletes files # This command is intended for maintainers to use; it deletes files
# that may need special tools to rebuild. # that may need special tools to rebuild.
maintainer-clean: distclean maintainer-clean: distclean
rm -rf $(top_srcdir)/data/video $(top_srcdir)/test/data/eps
# That's all Folks! # That's all Folks!
## ##
Loading…
Cancel
Save