makefile 943 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. #package specific vars
  5. VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
  6. PACKAGE_NAME := xsecurelock_$(VERSION)_armhf
  7. PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
  8. PACKAGE_LOCAL_BUILD_DEPS :=
  9. $(PACKAGE_NAME_DEB):
  10. $(PRAWNOS_PACKAGE_SCRIPTS_PBUILD_PACKAGE) $(PACKAGE_NAME_DEB) \
  11. $(PBUILDER_VARS) \
  12. $(PRAWNOS_LOCAL_APT_VARS) \
  13. $(PACKAGE_LOCAL_BUILD_DEPS)
  14. .PHONY: clean
  15. clean:
  16. rm -rf *.upload
  17. rm -rf *.deb
  18. rm -rf *.changes
  19. rm -rf *.dsc
  20. rm -rf *.build
  21. rm -rf *.diff.gz
  22. rm -rf *.debian.tar.xz
  23. rm -rf *.buildinfo
  24. install:
  25. $(PRAWNOS_PACKAGE_SCRIPTS_INSTALL_PACKAGE) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
  26. .PHONY: upload
  27. $(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD_PACKAGE)