server.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/org.pdf $(SERVROOT)
  39. $(CP) doc/orgguide.html $(SERVROOT)
  40. $(CP) doc/orgguide.pdf $(SERVROOT)
  41. $(CP) doc/manual/* $(SERVROOT)/manual
  42. $(CP) doc/guide/* $(SERVROOT)/guide
  43. upload: cleanall doc-up