diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-02-07 16:12:30 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-02-07 17:19:31 +0100 |
commit | 0786f1ca5f9a0c956fbe440c08e669d89d8e7bcf (patch) | |
tree | 456ed45790fc2174e1991883b0505bc13e476c4e /packages | |
parent | 94030a670bf8b0fa35c29d01d1348fc2a2ed8c02 (diff) | |
download | strongswan-0786f1ca5f9a0c956fbe440c08e669d89d8e7bcf.tar.bz2 strongswan-0786f1ca5f9a0c956fbe440c08e669d89d8e7bcf.tar.xz |
maemo: Makefile target to build source-only packages.
Diffstat (limited to 'packages')
-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 |