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 14:20:34 -04:00
|
|
|
# no slash / at the end
|
|
|
|
SERVROOT = /var/www/orgmode.org
|
|
|
|
SERVERMK = true # or just any value at all, really
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2012-08-19 06:21:33 -04:00
|
|
|
ORGCOMM = README request-assign-future.txt lisp/ doc/
|
2012-08-26 08:03:20 -04:00
|
|
|
ORGFULL = $(ORGCOMM) Makefile \
|
|
|
|
mk/default.mk mk/targets.mk mk/version.mk \
|
|
|
|
mk/org-fixup.el \
|
|
|
|
etc/ contrib/
|
2012-08-19 06:21:33 -04:00
|
|
|
ORGFULL := $(ORGFULL:%/=%/*)
|
|
|
|
ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el
|
|
|
|
ORGELPA := $(ORGELPA:%/=%/*)
|
2012-05-17 04:34:39 -04:00
|
|
|
|
2012-08-19 06:21:33 -04:00
|
|
|
release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
|
2012-08-26 08:03:20 -04:00
|
|
|
release: cleanall doc 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-25 02:35:02 -04:00
|
|
|
rel-up: rel-dirty
|
|
|
|
$(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-26 14:29:06 -04:00
|
|
|
elpa: ORG_MAKE_DOC=info # do not make HTML PDF card documentation
|
2012-08-19 06:21:33 -04:00
|
|
|
elpa: cleanall doc 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-08-19 06:21:33 -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-08-19 06:21:33 -04:00
|
|
|
$(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
|
|
|
|
-@$(RM) $(ORGDIR) org-pkg.el
|
2012-08-25 02:35:02 -04:00
|
|
|
elpa-up: elpa-dirty
|
|
|
|
$(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/
|
2012-05-17 04:34:39 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
doc-up:
|
|
|
|
$(MAKE) -C doc html manual guide
|
|
|
|
$(CP) doc/org.html $(SERVROOT)
|
|
|
|
$(CP) doc/manual/* $(SERVROOT)/manual
|
|
|
|
$(CP) doc/guide/* $(SERVROOT)/guide
|
|
|
|
|
|
|
|
upload upload-elpa upload-release upload-doc: ORG_MAKE_DOC=info pdf card
|
|
|
|
upload: cleanall doc elpa-up rel-up doc-up
|
|
|
|
upload-elpa: cleanall doc elpa-up
|
|
|
|
upload-release: cleanall doc rel-up
|
|
|
|
upload-doc: cleanall doc doc-up
|