makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .DEFAULT_GOAL := default
  2. #import all shared make vars
  3. PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
  4. include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
  5. #package specific vars
  6. VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
  7. PACKAGE_NAME := xsecurelock_$(VERSION)_armhf
  8. PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
  9. PACKAGE_LOCAL_BUILD_DEPS :=
  10. default: $(PACKAGE_NAME_DEB)
  11. $(PACKAGE_NAME_DEB):
  12. $(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \
  13. $(PBUILDER_VARS) \
  14. $(PRAWNOS_LOCAL_APT_VARS) \
  15. $(PACKAGE_LOCAL_BUILD_DEPS)
  16. .PHONY: clean
  17. clean:
  18. rm -rf $(PRAWNOS_LOCAL_APT_REPO)/$(PACKAGE_NAME_DEB)
  19. rm -rf *.upload
  20. rm -rf *.deb
  21. rm -rf *.changes
  22. rm -rf *.dsc
  23. rm -rf *.build
  24. rm -rf *.diff.gz
  25. rm -rf *.debian.tar.xz
  26. rm -rf *.buildinfo
  27. install:
  28. $(PRAWNOS_PACKAGE_SCRIPTS_INSTALL) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
  29. .PHONY: upload
  30. upload:
  31. $(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD)