kernel-netlink: Actually verify if the netlink message exceeds the buffer size
[strongswan.git] / packages / maemo-strongswan / Makefile
index b8a8a51..aafdef9 100644 (file)
@@ -5,16 +5,23 @@ 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: prepare
        cd $(BUILD)/$(ORIGNAME) && \
        dpkg-buildpackage -rfakeroot -sa > /dev/null
 
+source: prepare
+       cd $(BUILD)/$(ORIGNAME) && \
+       dpkg-buildpackage -rfakeroot -sa -S > /dev/null
+
+prepare: $(ORIGSRC)
+       rm -Rf $(BUILD)/$(ORIGNAME)
+       tar -zx -C $(BUILD) -f $(ORIGSRC)
+       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)
-       tar -zx -C $(BUILD) -f $(ORIGSRC)
 
 $(SOURCE)/Makefile: $(SOURCE)/configure
        cd $(SOURCE) && ./configure --disable-gmp > /dev/null
@@ -28,4 +35,4 @@ $(BUILD):
 clean:
        rm -Rf $(BUILD)
 
-.PHONY:        package clean
+.PHONY:        package source prepare clean