Setting tag sfa-2.1-23
[build.git] / Makefile
index 1a4c823..4def70c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -658,6 +658,17 @@ endef
 
 $(foreach package,$(ALL),$(eval $(call target_depends,$(package))))
 
+####################
+# very rough for now (one module per package), targets only sfa for now
+define target_debian
+$(1)-debian: $(1)-tarball
+       mkdir -p DEBIAN/$(1)
+       rsync -a MODULES/$(1)/ DEBIAN/$(1)/
+       make -C DEBIAN/$(1) "TARBALL=$(HOME)/$($(1).tarballs)" debian
+endef
+
+$(foreach package,$(ALL),$(eval $(call target_debian,$(package))))
+
 ### clean target
 # usage: target_clean package
 define target_clean
@@ -684,7 +695,11 @@ $(1)-clean-srpm:
        rm -rf $($(1).srpm)
 .PHONY: $(1)-clean-srpm
 CLEANS += $(1)-clean-srpm
-$(1)-codeclean: $(1)-clean-source $(1)-clean-tarball $(1)-clean-build $(1)-clean-rpms $(1)-clean-srpm
+$(1)-clean-debian:
+       rm -rf DEBIAN/$(1)
+.PHONY: $(1)-clean-srpm
+CLEANS += $(1)-clean-srpm
+$(1)-codeclean: $(1)-clean-source $(1)-clean-tarball $(1)-clean-build $(1)-clean-rpms $(1)-clean-srpm $(1)-clean-debian
 $(1)-clean: $(1)-clean-modules $(1)-codeclean
 .PHONY: $(1)-codeclean $(1)-clean 
 $(1)-clean-spec: