forked from mirrors/org-mode
* Makefile: Include default.mk and targets.mk from mk/ where they've been moved to. * README_maintainer: Rename utils to make throughout. * doc/Makefile: Rename utils to make throughout. * doc/org.texi: Remove reference to utils/, x11idle.c is now in contrib/scripts. * mk/make_emacs_changelog: Add mk/ to list of directories not to be reported in Emacs' ChangeLog. Also retain utils/ and re-add UTILITIES; add a comment explaining why these need to stay. * mk/default.mk: Rename utils to make throughout. Include version.mk from mk/ where it's been moved to. * mk/targets.mk: Rename utils to make throughout. * mk/server.mk: Rename utils to make throughout. Only put those files from mk/ into the archives that are needed outside the server: default.mk targets.mk version.mk and org-fixup.el. * lisp/org-compat.el: Rename utils to make throughout. * .gitignore: Rename utils to make throughout.
92 lines
3.3 KiB
Makefile
92 lines
3.3 KiB
Makefile
#----------------------------------------------------------------------
|
|
# This file is used for maintenance of org on the server.
|
|
#----------------------------------------------------------------------
|
|
.PHONY: helpserver \
|
|
release rel-dirty rel-up cleanrel \
|
|
elpa elpa-dirty elpa-up \
|
|
doc-up \
|
|
upload-release upload-elpa upload-doc upload \
|
|
tagwarn version
|
|
|
|
help helpall helpserver::
|
|
$(info )
|
|
$(info Maintenance)
|
|
$(info ===========)
|
|
$(info release - clean up and create distribution archives)
|
|
$(info elpa - clean up and create ELPA archive)
|
|
$(info upload - clean up and populate server directories)
|
|
helpserver::
|
|
@echo ""
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
ORGCOMM = README request-assign-future.txt lisp/ doc/
|
|
ORGFULL = $(ORGCOMM) Makefile \
|
|
mk/default.mk mk/targets.mk mk/version.mk \
|
|
mk/org-fixup.el \
|
|
etc/ contrib/
|
|
ORGFULL := $(ORGFULL:%/=%/*)
|
|
ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el
|
|
ORGELPA := $(ORGELPA:%/=%/*)
|
|
|
|
release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
|
|
release: cleanall doc rel-dirty tagwarn
|
|
rel-dirty rel-up: ORGDIR=org-$(GITVERSION:release_%=%)
|
|
rel-dirty:
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-dist version autoloads
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGRZIP)
|
|
ln -s . $(ORGDIR)
|
|
tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
zip -r9 $(ORGDIR).zip $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
|
|
-@$(RM) $(ORGDIR)
|
|
rel-up: rel-dirty
|
|
$(CP) $(ORGDIR).tar.gz $(ORGDIR).zip $(SERVROOT)/
|
|
|
|
PKG_TAG = $(shell date +%Y%m%d)
|
|
PKG_DOC = "Outline-based notes management and organizer"
|
|
PKG_REQ = "nil"
|
|
|
|
elpa: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
|
|
elpa: cleanall doc elpa-dirty
|
|
elpa-dirty elpa-up: ORGDIR=org-$(PKG_TAG)
|
|
elpa-dirty:
|
|
@$(MAKE) GITVERSION=$(GITVERSION:release_%=%)-elpa version autoloads
|
|
-@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
|
|
ln -s . $(ORGDIR)
|
|
echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" >org-pkg.el
|
|
tar --exclude=Makefile --transform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
|
|
$(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
|
|
-@$(RM) $(ORGDIR) org-pkg.el
|
|
elpa-up: elpa-dirty
|
|
$(CP) $(ORGDIR).tar $(SERVROOT)/pkg/daily/
|
|
|
|
tagwarn:
|
|
$(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 ======================================================))
|
|
|
|
version:
|
|
@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
|
|
@echo "ORGVERSION ?= $(ORGVERSION)" > mk/version.mk
|
|
@echo "GITVERSION ?= $(GITVERSION)" >> mk/version.mk
|
|
|
|
cleanall clean: cleanrel
|
|
cleanrel:
|
|
-$(RM) org-$(PKG_TAG)* org-$(DISTVERSION)* org-*.zip org-*.tar* mk/version.mk
|
|
|
|
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
|