makefile 999 B

123456789101112131415161718192021222324252627282930313233343536
  1. #import all shared make vars
  2. PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
  3. include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.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_NAME_DEB) \
  11. $(PBUILDER_VARS) \
  12. $(PRAWNOS_LOCAL_APT_VARS) \
  13. $(PACKAGE_LOCAL_BUILD_DEPS)
  14. .PHONY: clean
  15. clean:
  16. rm -rf $(PRAWNOS_LOCAL_APT_REPO)/$(PACKAGE_NAME_DEB)
  17. rm -rf *.upload
  18. rm -rf *.deb
  19. rm -rf *.changes
  20. rm -rf *.dsc
  21. rm -rf *.build
  22. rm -rf *.diff.gz
  23. rm -rf *.debian.tar.xz
  24. rm -rf *.buildinfo
  25. install:
  26. $(PRAWNOS_PACKAGE_SCRIPTS_INSTALL) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
  27. .PHONY: upload
  28. upload:
  29. $(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD)