server.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #----------------------------------------------------------------
  2. # This file is used to upload the Org documentation to the server
  3. #----------------------------------------------------------------
  4. .PHONY: helpserver \
  5. doc-up \
  6. upload \
  7. tagwarn version
  8. help helpserver::
  9. $(info )
  10. $(info Maintenance)
  11. $(info ===========)
  12. $(info upload - clean up, populate the server with documentation)
  13. helpserver::
  14. @echo ""
  15. #----------------------------------------------------------------------
  16. SERVROOT ?= upload
  17. SERVERMK ?= true # or just any value at all, really
  18. #----------------------------------------------------------------------
  19. release: cleanall info pdf card tagwarn
  20. PKG_TAG = $(shell date +%Y%m%d)
  21. PKG_DOC = "Outline-based notes management and organizer"
  22. PKG_REQ = "" # marmalade chokes on explicit "nil"
  23. tagwarn:
  24. $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
  25. $(info ======================================================) \
  26. $(info = =) \
  27. $(info = A release should only be made from a revision that =) \
  28. $(info = has an annotated tag! =) \
  29. $(info = =) \
  30. $(info ======================================================))
  31. version:
  32. @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
  33. @echo "ORGVERSION ?= $(ORGVERSION)" > mk/version.mk
  34. @echo "GITVERSION ?= $(GITVERSION)" >> mk/version.mk
  35. doc-up: info pdf card html
  36. $(MAKE) -C doc manual guide
  37. $(CP) doc/org.html $(SERVROOT)
  38. $(CP) doc/orgcard.pdf $(SERVROOT)
  39. $(CP) doc/orgcard_letter.pdf $(SERVROOT)
  40. $(CP) doc/org.pdf $(SERVROOT)
  41. $(CP) doc/orgguide.html $(SERVROOT)
  42. $(CP) doc/orgguide.pdf $(SERVROOT)
  43. $(CP) doc/manual/* $(SERVROOT)/manual
  44. $(CP) doc/guide/* $(SERVROOT)/guide
  45. upload: cleanall doc-up