diff options
-rw-r--r-- | packages/maemo-applet/Makefile | 14 | ||||
-rw-r--r-- | packages/maemo-strongswan/Makefile | 14 |
2 files changed, 20 insertions, 8 deletions
diff --git a/packages/maemo-applet/Makefile b/packages/maemo-applet/Makefile index 1aa9febf0..a341af8ea 100644 --- a/packages/maemo-applet/Makefile +++ b/packages/maemo-applet/Makefile @@ -5,12 +5,18 @@ TARGETVERSION:=$(VERSION) ORIGNAME:=strongswan-applet-$(VERSION) ORIGSRC:=$(BUILD)/strongswan-applet_$(TARGETVERSION).orig.tar.gz -package: $(ORIGSRC) - debchange -b -v $(TARGETVERSION)-1 - cp -R debian $(BUILD)/$(ORIGNAME) +package: $(ORIGSRC) prepare cd $(BUILD)/$(ORIGNAME) && \ dpkg-buildpackage -rfakeroot -sa > /dev/null +source: $(ORIGSRC) prepare + cd $(BUILD)/$(ORIGNAME) && \ + dpkg-buildpackage -rfakeroot -sa -S > /dev/null + +prepare: + debchange -b -v $(TARGETVERSION)-1 + cp -R debian $(BUILD)/$(ORIGNAME) + $(ORIGSRC): $(SOURCE)/Makefile | $(BUILD) make -j -C $(SOURCE) dist-gzip > /dev/null mv $(SOURCE)/$(ORIGNAME).tar.gz $(ORIGSRC) @@ -28,4 +34,4 @@ $(BUILD): clean: rm -Rf $(BUILD) -.PHONY: package clean +.PHONY: package source prepare clean diff --git a/packages/maemo-strongswan/Makefile b/packages/maemo-strongswan/Makefile index b8a8a5101..50a4a011d 100644 --- a/packages/maemo-strongswan/Makefile +++ b/packages/maemo-strongswan/Makefile @@ -5,12 +5,18 @@ TARGETVERSION:=$(VERSION) ORIGNAME:=strongswan-$(VERSION) ORIGSRC:=$(BUILD)/strongswan_$(TARGETVERSION).orig.tar.gz -package: $(ORIGSRC) - debchange -b -v $(TARGETVERSION)-1 - cp -R debian $(BUILD)/$(ORIGNAME) +package: $(ORIGSRC) prepare cd $(BUILD)/$(ORIGNAME) && \ dpkg-buildpackage -rfakeroot -sa > /dev/null +source: $(ORIGSRC) prepare + cd $(BUILD)/$(ORIGNAME) && \ + dpkg-buildpackage -rfakeroot -sa -S > /dev/null + +prepare: + debchange -b -v $(TARGETVERSION)-1 + cp -R debian $(BUILD)/$(ORIGNAME) + $(ORIGSRC): $(SOURCE)/Makefile | $(BUILD) make -j -C $(SOURCE) dist-gzip > /dev/null mv $(SOURCE)/$(ORIGNAME).tar.gz $(ORIGSRC) @@ -28,4 +34,4 @@ $(BUILD): clean: rm -Rf $(BUILD) -.PHONY: package clean +.PHONY: package source prepare clean |