From: Thierry Parmentelat Date: Thu, 3 Apr 2014 08:32:38 +0000 (+0200) Subject: convenience meta-target 'debian' for building on debian - distclean would also trash... X-Git-Tag: 5.3.4~3 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=3690da76a1892e1515b33d5339cd1241bb4c7b77 convenience meta-target 'debian' for building on debian - distclean would also trash /build/DEBIAN --- diff --git a/Makefile b/Makefile index e8c45a6a..0533445d 100644 --- a/Makefile +++ b/Makefile @@ -704,6 +704,11 @@ endef $(foreach package,$(ALL),$(eval $(call target_depends,$(package)))) +#################### +# debian meta-target +ALL-DEBIAN := $(foreach target,$(ALL),$(target)-debian) +debian: $(ALL-DEBIAN) + #################### # very rough for now (one module per package), targets only sfa for now # the general idea here is, changing the specfile (for version number and all) is enough, and this @@ -783,7 +788,7 @@ clean-help: distclean1: rm -rf envfrompreviousrun.mk .rpmmacros spec2make header.spec SPECS MAKE $(DISTCLEANS) distclean2: - rm -rf MODULES SOURCES BUILD BUILDROOT RPMS SRPMS tmp + rm -rf MODULES SOURCES BUILD BUILDROOT RPMS SRPMS DEBIAN tmp distclean: distclean1 distclean2 .PHONY: distclean1 distclean2 distclean