maemo: Makefile target to build source-only packages.
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Feb 2011 15:12:30 +0000 (16:12 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 Feb 2011 16:19:31 +0000 (17:19 +0100)
packages/maemo-applet/Makefile
packages/maemo-strongswan/Makefile

index 1aa9feb..a341af8 100644 (file)
@@ -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
index b8a8a51..50a4a01 100644 (file)
@@ -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