SOURCE:=../../src/frontends/maemo BUILD:=build VERSION:=$(shell sed -n 's/AC_INIT(.*,\s*\(.*\))/\1/p' $(SOURCE)/configure.ac) TARGETVERSION:=$(VERSION) ORIGNAME:=strongswan-applet-$(VERSION) ORIGSRC:=$(BUILD)/strongswan-applet_$(TARGETVERSION).orig.tar.gz 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) tar -zx -C $(BUILD) -f $(ORIGSRC) $(SOURCE)/Makefile: $(SOURCE)/configure cd $(SOURCE) && ./configure > /dev/null $(SOURCE)/configure: $(SOURCE)/configure.ac cd $(SOURCE) && ./autogen.sh > /dev/null $(BUILD): mkdir -p $(BUILD) clean: rm -Rf $(BUILD) .PHONY: package source prepare clean