From 6cbe42b96becd7118b9876414c5bcd83f0b074e7 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 18 Feb 2006 19:46:39 +0000 Subject: added some handy extra targets for cleaning up after the package build and testing the package once its built svn path=/trunk/; revision=4599 --- packages/linux_make/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index fefbf478..312489c0 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -103,6 +103,9 @@ installer_makefile: ./generate_install_makefile.bash $(DESTDIR)$(prefix) > tarbz2Makefile mv -i tarbz2Makefile $(DESTDIR)$(prefix)/Makefile +installer_clean: + chmod -R +w $(packages_src)/linux_make/build + rm -rf $(packages_src)/linux_make/build #==============================================================================# @@ -111,10 +114,14 @@ installer_makefile: # #==============================================================================# -clean: +clean: installer_clean cd $(packages_src) && make $(DEST_PATHS) clean +test_package: + cd /tmp && tar xjf $(DESTDIR)/$(PACKAGE_NAME).tar.bz2 + make -C /tmp/$(PACKAGE_NAME) prefix=/tmp/usr/local install + make -C /tmp/$(PACKAGE_NAME) prefix=/tmp/usr/local uninstall test_locations: @echo "PD_VERSION: $(PD_VERSION)" -- cgit v1.2.1