add f12 to defaults
[build.git] / Makefile
index 2472f54..4def70c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -659,12 +659,12 @@ endef
 $(foreach package,$(ALL),$(eval $(call target_depends,$(package))))
 
 ####################
-# very rough for now (one module per package), targets only sfa
+# very rough for now (one module per package), targets only sfa for now
 define target_debian
-$(1).debian:
+$(1)-debian: $(1)-tarball
        mkdir -p DEBIAN/$(1)
-       rsync -av MODULES/$(1) DEBIAN/$(1)
-       make -C DEBIAN/$(1) debian
+       rsync -a MODULES/$(1)/ DEBIAN/$(1)/
+       make -C DEBIAN/$(1) "TARBALL=$(HOME)/$($(1).tarballs)" debian
 endef
 
 $(foreach package,$(ALL),$(eval $(call target_debian,$(package))))
@@ -695,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: