maemo: Makefile target to build source-only packages.

This commit is contained in:
Tobias Brunner 2011-02-07 16:12:30 +01:00
parent 94030a670b
commit 0786f1ca5f
2 changed files with 20 additions and 8 deletions

View 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

View 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