makefile 791 B

1234567891011121314151617181920212223242526272829303132333435
  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. PACKAGE_NAME := font-source-code-pro_$(VERSION)_all
  6. PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
  7. $(PACKAGE_NAME_DEB):
  8. @echo Building $@
  9. cd src/; debuild -us -uc
  10. .PHONY: clean
  11. clean:
  12. rm -rf *.upload
  13. rm -rf *.deb
  14. rm -rf *.changes
  15. rm -rf *.dsc
  16. rm -rf *.build
  17. rm -rf *.diff.gz
  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. ifeq ("$(wildcard $(PACKAGE_NAME_DEB))","")
  28. $(error $(PACKAGE_NAME_DEB) must be built first)
  29. endif
  30. cp $(PACKAGE_NAME_DEB) $(INSTALL_TARGET)