Makefile 414 B

12345678910111213141516171819
  1. SOURCE=../..
  2. VERSION:=5.0.1dr1
  3. source: prepare
  4. cd build/strongswan-$(VERSION) && debuild -S
  5. prepare: clean
  6. mkdir build
  7. make -C $(SOURCE) dist-gzip
  8. mv $(SOURCE)/strongswan-$(VERSION).tar.gz build/strongswan_$(VERSION).orig.tar.gz
  9. tar -zxv -C build -f build/strongswan_$(VERSION).orig.tar.gz
  10. dch -b -v $(VERSION)
  11. cp -R debian build/strongswan-$(VERSION)
  12. clean:
  13. rm -Rf build
  14. .PHONY: source prepare clean