makefile 747 B

12345678910111213141516171819202122232425262728293031323334
  1. #import all shared make vars
  2. PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
  3. include $(PRAWNOS_ROOT)/scripts/common.mk
  4. VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
  5. xsecurelock_$(VERSION)_armhf.deb:
  6. @echo Building $@
  7. cd src/; pdebuild --configfile $(PBUILDER_RC) \
  8. --buildresult .. \
  9. -- \
  10. --basetgz $(PBUILDER_CHROOT) \
  11. .PHONY: clean
  12. clean:
  13. rm -rf *.upload
  14. rm -rf *.deb
  15. rm -rf *.changes
  16. rm -rf *.dsc
  17. rm -rf *.build
  18. rm -rf *.debian.tar.xz
  19. rm -rf *.buildinfo
  20. .PHONY: upload
  21. upload:
  22. dput deb.prawnos.com *.changes
  23. install:
  24. ifndef INSTALL_TARGET
  25. $(error INSTALL_TARGET is not set)
  26. endif
  27. cp xsecurelock_$(VERSION)_armhf.deb $(INSTALL_TARGET)