$(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
$(call dpkgapt_install_local_debs,$(1))
$(call dpkgapt_install_stock_debs,$(1))
mkdir -p DEBIAN/$(1)
- rsync -a MODULES/$(1)/ DEBIAN/$(1)/
+ rsync -a MODULES/$($(1).module)/ DEBIAN/$(1)/
make -C DEBIAN/$(1) "RPMTARBALL=$(HOME)/$($(1).tarballs)" "RPMVERSION=$($(1).rpm-version)" "RPMRELEASE=$($(1).rpm-release)" "RPMNAME=$($(1).rpm-name)" debian
$(call dpkgapt_uninstall_stock_debs,$(1))
endef
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