2012-05-17 04:34:39 -04:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# This file is used for maintenance of org on the server.
|
|
|
|
#----------------------------------------------------------------------
|
2012-08-25 02:35:02 -04:00
|
|
|
.PHONY: helpserver \
|
|
|
|
release rel-dirty rel-up cleanrel \
|
|
|
|
elpa elpa-dirty elpa-up \
|
|
|
|
doc-up \
|
|
|
|
upload-release upload-elpa upload-doc upload \
|
2012-08-26 08:03:20 -04:00
|
|
|
tagwarn version
|
2012-05-17 04:34:39 -04:00
|
|
|
|
|
|
|
help helpall helpserver::
|
|
|
|
$(info )
|
|
|
|
$(info Maintenance)
|
|
|
|
$(info ===========)
|
2012-08-26 14:22:57 -04:00
|
|
|
$(info release - clean up, create the distribution archives)
|
|
|
|
$(info elpa - clean up, create the ELPA archive)
|
|
|
|
$(info upload-release - clean up, populate the server with arhives)
|
|
|
|
$(info upload-elpa - clean up, populate the server with ELPA)
|
|
|
|
$(info upload-doc - clean up, populate the server with docs)
|
|
|
|
$(info upload - clean up, populate the server with everything)
|
2012-08-26 14:20:34 -04:00
|
|
|
|
2012-05-17 04:34:39 -04:00
|
|
|
helpserver::
|
|
|
|
@echo ""
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2012-08-26 08:03:20 -04:00
|
|
|
SERVROOT ?= /var/www/orgmode.org
|
|
|
|
SERVERMK ?= true # or just any value at all, really
|
2012-08-26 14:20:34 -04:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
ORGCOMM = README lisp/
|
|
|
|
ORGFULL = $(ORGCOMM) Makefile request-assign-future.txt \
|
2012-08-26 08:03:20 -04:00
|
|
|
mk/default.mk mk/targets.mk mk/version.mk \
|
|
|
|
mk/org-fixup.el \
|
2012-08-27 13:12:36 -04:00
|
|
|
etc/ contrib/ doc/
|
2012-08-19 06:21:33 -04:00
|
|
|
ORGFULL := $(ORGFULL:%/=%/*)
|
2012-08-27 13:12:36 -04:00
|
|
|
ORGELPA = $(ORGCOMM) doc/dir doc/org doc/orgcard.pdf \
|
|
|
|
etc/styles/ org-pkg.el
|
2012-08-19 06:21:33 -04:00
|
|
|
ORGELPA := $(ORGELPA:%/=%/*)
|
2012-09-15 13:52:18 -04:00
|
|
|
ORGELPAPLUS := $(ORGELPA:org-pkg%=orgplus-pkg%)
|
2012-05-17 04:34:39 -04:00
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
release: cleanall info pdf card rel-dirty tagwarn
|
2012-08-25 02:35:02 -04:00
|
|
|
rel-dirty rel-up: ORGDIR=org-$(GITVERSION:release_%=%)
|
2012-08-26 08:03:20 -04:00
|
|
|
rel-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-dist version autoloads
|
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGRZIP)
|
2012-08-22 02:04:56 -04:00
|
|
|
ln -s . $(ORGDIR)
|
|
|
|
tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
|
|
zip -r9 $(ORGDIR).zip $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR)
|
2012-08-27 13:12:36 -04:00
|
|
|
rel-up: info pdf card rel-dirty
|
2012-08-25 02:35:02 -04:00
|
|
|
$(CP) $(ORGDIR).tar.gz $(ORGDIR).zip $(SERVROOT)/
|
2012-08-19 06:21:33 -04:00
|
|
|
|
|
|
|
PKG_TAG = $(shell date +%Y%m%d)
|
|
|
|
PKG_DOC = "Outline-based notes management and organizer"
|
|
|
|
PKG_REQ = "nil"
|
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
elpa: cleanall info card elpa-dirty
|
2012-08-25 02:35:02 -04:00
|
|
|
elpa-dirty elpa-up: ORGDIR=org-$(PKG_TAG)
|
2012-08-26 08:03:20 -04:00
|
|
|
elpa-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpa version autoloads
|
2012-05-17 04:34:39 -04:00
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
|
|
|
|
ln -s . $(ORGDIR)
|
2012-09-15 14:06:53 -04:00
|
|
|
echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" \
|
|
|
|
> org-pkg.el
|
2012-08-24 14:39:30 -04:00
|
|
|
tar --exclude=Makefile --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
|
2012-09-15 14:06:53 -04:00
|
|
|
$(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR) org-pkg.el
|
2012-08-27 13:12:36 -04:00
|
|
|
elpa-up: info card elpa-dirty
|
2012-08-25 02:35:02 -04:00
|
|
|
$(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/
|
2012-05-17 04:34:39 -04:00
|
|
|
|
2012-09-15 12:49:18 -04:00
|
|
|
|
|
|
|
elpaplus: cleanall info card elpaplus-dirty
|
|
|
|
elpaplus-dirty elpaplus-up: ORG_ADD_CONTRIB=org-*
|
|
|
|
elpaplus-dirty elpaplus-up: ORGDIR=orgplus-$(PKG_TAG)
|
|
|
|
elpaplus-dirty:
|
|
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpaplus version autoloads
|
|
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
|
|
|
|
ln -s . $(ORGDIR)
|
2012-09-15 14:06:53 -04:00
|
|
|
echo "(define-package \"orgplus\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" \
|
|
|
|
> orgplus-pkg.el
|
2012-09-15 12:49:18 -04:00
|
|
|
tar --exclude=Makefile --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
|
2012-09-15 14:06:53 -04:00
|
|
|
$(foreach dist, $(ORGELPAPLUS), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR) orgplus-pkg.el
|
2012-09-15 12:49:18 -04:00
|
|
|
@$(MAKE) cleanlisp
|
|
|
|
elpaplus-up: info card elpaplus-dirty
|
|
|
|
$(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/
|
|
|
|
|
2012-08-19 06:21:33 -04:00
|
|
|
tagwarn:
|
2012-08-26 08:03:20 -04:00
|
|
|
$(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
|
|
|
|
$(info ======================================================) \
|
|
|
|
$(info = =) \
|
|
|
|
$(info = A release should only be made from a revision that =) \
|
|
|
|
$(info = has an annotated tag! =) \
|
|
|
|
$(info = =) \
|
|
|
|
$(info ======================================================))
|
2012-08-22 02:04:56 -04:00
|
|
|
|
2012-08-26 08:03:20 -04:00
|
|
|
version:
|
|
|
|
@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
|
|
|
|
@echo "ORGVERSION ?= $(ORGVERSION)" > mk/version.mk
|
|
|
|
@echo "GITVERSION ?= $(GITVERSION)" >> mk/version.mk
|
2012-08-26 04:18:23 -04:00
|
|
|
|
|
|
|
cleanall clean: cleanrel
|
2012-08-22 02:04:56 -04:00
|
|
|
cleanrel:
|
2012-08-26 08:03:20 -04:00
|
|
|
-$(RM) org-$(PKG_TAG)* org-$(DISTVERSION)* org-*.zip org-*.tar* mk/version.mk
|
2012-08-25 02:35:02 -04:00
|
|
|
|
2012-08-27 13:12:36 -04:00
|
|
|
doc-up: info pdf card html
|
|
|
|
$(MAKE) -C doc manual guide
|
2012-08-25 02:35:02 -04:00
|
|
|
$(CP) doc/org.html $(SERVROOT)
|
|
|
|
$(CP) doc/manual/* $(SERVROOT)/manual
|
|
|
|
$(CP) doc/guide/* $(SERVROOT)/guide
|
|
|
|
|
2012-09-15 12:49:18 -04:00
|
|
|
upload: cleanall elpa-up rel-up doc-up elpaplus-up
|
|
|
|
upload-elpa: cleanall elpa-up
|
|
|
|
upload-elpaplus: cleanall elpaplus-up
|
|
|
|
upload-release: cleanall rel-up
|
|
|
|
upload-doc: cleanall doc-up
|