From 0786f1ca5f9a0c956fbe440c08e669d89d8e7bcf Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 7 Feb 2011 16:12:30 +0100 Subject: [PATCH] maemo: Makefile target to build source-only packages. --- packages/maemo-applet/Makefile | 14 ++++++++++---- 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