makefile 888 B

123456789101112131415161718192021222324252627282930313233343536
  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 := font-source-code-pro_$(VERSION)_all
  8. PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
  9. default: $(PACKAGE_NAME_DEB)
  10. $(PACKAGE_NAME_DEB):
  11. @echo Building $@
  12. cd src/; debuild -us -uc
  13. mkdir -p $PRAWNOS_LOCAL_APT_REPO
  14. cp $PACKAGE_NAME $PRAWNOS_LOCAL_APT_REPO
  15. .PHONY: clean
  16. clean:
  17. rm -rf $(PRAWNOS_LOCAL_APT_REPO)/$(PACKAGE_NAME_DEB)
  18. rm -rf *.upload
  19. rm -rf *.deb
  20. rm -rf *.changes
  21. rm -rf *.dsc
  22. rm -rf *.build
  23. rm -rf *.diff.gz
  24. rm -rf *.debian.tar.xz
  25. rm -rf *.buildinfo
  26. install:
  27. $(PRAWNOS_PACKAGE_SCRIPTS_INSTALL) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)
  28. .PHONY: upload
  29. upload:
  30. $(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD)