| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 | # Makefile - for the org-mode distribution## Maintainer: Carsten Dominik <dominik@science.uva.nl># Version: VERSIONTAG## To install org-mode, edit the Makefile, type `make', then `make install'.# To create the PDF and HTML documentation files, type `make doc'.##----------------------------------------------------------------------##  YOU MUST EDIT THE FOLLOWING LINES##----------------------------------------------------------------------# Name of your emacs binaryEMACS=emacs# Where local software is foundprefix=/usr/local# Where local lisp files go.lispdir   = $(prefix)/share/emacs/site-lisp# Where info files go.infodir = $(prefix)/share/info##----------------------------------------------------------------------## YOU MAY NEED TO EDIT THESE##----------------------------------------------------------------------# Using emacs in batch mode.BATCH=$(EMACS) -batch -q -no-site-file -eval                             			\  "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))"# Specify the byte-compiler for compiling org-mode filesELC= $(BATCH) -f batch-byte-compile# How to make a pdf file from a texinfo fileTEXI2PDF = texi2pdf# How to create directoriesMKDIR = mkdir -p# How to create the info files from the texinfo fileMAKEINFO = makeinfo# How to create the HTML fileTEXI2HTML = makeinfo --html --number-sectionsTEXI2HTMLNOPSLIT = makeinfo --html --no-split --number-sections# How to copy the lisp files and elc files to their distination.CP = cp -p# Name of the program to install info filesINSTALL_INFO=install-info##----------------------------------------------------------------------##  BELOW THIS LINE ON YOUR OWN RISK!##----------------------------------------------------------------------# The following variables need to be defined by the maintainerLISPF      = 	org.el			\		org-agenda.el		\		org-ascii.el		\	     	org-attach.el		\	     	org-archive.el		\		org-bbdb.el		\		org-beamer.el		\		org-bibtex.el		\	     	org-capture.el		\	     	org-clock.el		\	     	org-colview.el		\	     	org-colview-xemacs.el	\	     	org-compat.el		\	     	org-crypt.el		\	     	org-ctags.el		\	     	org-datetree.el		\	     	org-docview.el		\	     	org-entities.el		\		org-exp.el		\		org-exp-blocks.el	\		org-docbook.el		\		org-faces.el		\		org-feed.el		\		org-footnote.el		\		org-freemind.el		\		org-gnus.el		\		org-habit.el		\		org-html.el		\		org-icalendar.el	\		org-id.el		\		org-indent.el		\		org-info.el		\		org-inlinetask.el	\		org-jsinfo.el		\		org-irc.el		\		org-latex.el		\		org-list.el		\		org-mac-message.el	\	     	org-macs.el		\		org-mew.el              \		org-mhe.el		\		org-mks.el		\		org-mobile.el		\		org-mouse.el		\		org-publish.el		\		org-plot.el		\		org-protocol.el		\		org-remember.el		\		org-rmail.el		\		org-src.el		\		org-table.el		\		org-taskjuggler.el	\		org-timer.el		\		org-vm.el		\		org-w3m.el              \		org-wl.el		\		org-xoxo.el		\		ob.el			\		ob-table.el		\		ob-lob.el		\		ob-ref.el		\		ob-exp.el		\		ob-tangle.el		\		ob-comint.el		\		ob-eval.el		\		ob-keys.el		\		ob-C.el			\		ob-ditaa.el		\		ob-haskell.el		\		ob-perl.el		\		ob-sh.el		\		ob-R.el			\		ob-dot.el		\		ob-mscgen.el		\		ob-latex.el		\		ob-ledger.el		\		ob-python.el		\		ob-sql.el		\		ob-asymptote.el		\		ob-emacs-lisp.el	\		ob-matlab.el		\		ob-ruby.el		\		ob-sqlite.el		\		ob-clojure.el		\		ob-ocaml.el		\		ob-sass.el		\		ob-css.el		\		ob-gnuplot.el		\		ob-octave.el		\		ob-screen.el		\		ob-plantuml.el		\		ob-org.el		\		ob-js.el		\		ob-scheme.elLISPFILES0  = $(LISPF:%=lisp/%)LISPFILES   = $(LISPFILES0) lisp/org-install.elELCFILES0   = $(LISPFILES0:.el=.elc)ELCFILES    = $(LISPFILES:.el=.elc)DOCFILES    = doc/org.texi doc/org.pdf doc/org doc/dir \              doc/pdflayout.sty doc/.nosearch \              doc/orgguide.texi doc/orgguide.pdfCARDFILES   = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdfTEXIFILES   = doc/org.texiINFOFILES   = doc/org.SUFFIXES: .el .elc .texiSHELL = /bin/sh# Additional distribution filesDISTFILES_extra=  Makefile request-assign-future.txt contribdefault: $(ELCFILES) $(ELCBFILES)all:	$(ELCFILES) $(ELCBFILES) $(INFOFILES)up2:	update	sudo ${MAKE} installupdate:	git pull	${MAKE} clean	${MAKE} allcompile: $(ELCFILES0) $(ELCBFILES)install: install-lispdoc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdfp:	${MAKE} pdf && open doc/org.pdfg:	${MAKE} pdf && open doc/orgguide.pdfinstall-lisp: $(LISPFILES) $(ELCFILES)	if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;	$(CP) $(LISPFILES)  $(lispdir)	$(CP) $(ELCFILES)   $(lispdir)install-info: $(INFOFILES)	if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;	$(CP) $(INFOFILES) $(infodir)	$(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)install-info-debian: $(INFOFILES)	$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)autoloads: lisp/org-install.ellisp/org-install.el: $(LISPFILES0) Makefile	$(BATCH) --eval "(require 'autoload)" \		--eval '(find-file "org-install.el")'  \		--eval '(erase-buffer)' \		--eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \		--eval '(insert "\n(provide (quote org-install))\n")' \		--eval '(save-buffer)'	mv org-install.el lispdoc/org: doc/org.texi	(cd doc; $(MAKEINFO) --no-split org.texi -o org)doc/org.pdf: doc/org.texi	(cd doc; $(TEXI2PDF) org.texi)doc/orgguide.pdf: doc/orgguide.texi	(cd doc; $(TEXI2PDF) orgguide.texi)doc/org.html: doc/org.texi	(cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)	UTILITIES/manfull.pl doc/org.htmldoc/orgcard.pdf: doc/orgcard.tex	(cd doc; pdftex orgcard.tex)doc/orgcard.txt: doc/orgcard.tex	(cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex > orgcard.txt)doc/orgcard_letter.tex: doc/orgcard.tex	perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \                   doc/orgcard.tex > doc/orgcard_letter.texdoc/orgcard_letter.pdf: doc/orgcard_letter.tex	(cd doc; pdftex orgcard_letter.tex)# Below here are special targets for maintenance onlyupdateweb:	ssh cdominik@orgmode.org 'pull-worg-org.sh && publish-worg-org.sh'html: doc/org.htmlhtml_manual: doc/org.texi	rm -rf doc/manual	mkdir doc/manual	$(TEXI2HTML) -o doc/manual doc/org.texi	UTILITIES/mansplit.pl doc/manual/*.htmlhtml_guide: doc/orgguide.texi	rm -rf doc/guide	mkdir doc/guide	$(TEXI2HTML) -o doc/guide doc/orgguide.texi	UTILITIES/guidesplit.pl doc/guide/*.htmlinfo:	doc/orgpdf:	doc/org.pdf doc/orgguide.pdfcard:	doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txttestrelease:	git checkout -b testrelease maint	git merge -s recursive -X theirs master	UTILITIES/set-version.pl testing	git commit -a -m "Release testing"	make distfile TAG=testversion	make cleanrel	rm -rf org-testversion*	git reset --hard	git checkout master	git branch -D testreleaserelease:	git checkout maint	git merge -s recursive -X theirs master	UTILITIES/set-version.pl $(TAG)	git commit -a -m "Release $(TAG)"	make relup TAG=$(TAG)	make cleanrel	rm -rf org-$(TAG)	rm org-$(TAG)*.zip	rm org-$(TAG)*.tar.gz	make pushreleasetag TAG=$(TAG)	git push origin maint	git checkout master	git merge -s ours maint	UTILITIES/set-version.pl -o $(TAG)	git commit -a -m "Update website to show $(TAG) as current release"	git push	make updatewebrelup:	${MAKE} makerelease	${MAKE} upload_release	${MAKE} upload_manualdistfile:	@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi	touch doc/org.texi doc/orgcard.tex # force update	${MAKE} cleancontrib	${MAKE} info	${MAKE} doc	${MAKE} lisp/org-install.el	rm -rf org-$(TAG) org-$(TAG).zip	$(MKDIR) org-$(TAG)	$(MKDIR) org-$(TAG)/doc	$(MKDIR) org-$(TAG)/lisp	cp -r $(LISPFILES) org-$(TAG)/lisp	cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc	cp -r $(DISTFILES_extra) org-$(TAG)/	cp -r README_DIST org-$(TAG)/README	cp -r ORGWEBPAGE/Changes.org org-$(TAG)/	zip -r org-$(TAG).zip org-$(TAG)	gtar zcvf org-$(TAG).tar.gz org-$(TAG)makerelease:	@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi	${MAKE} distfile	${MAKE} doc	UTILITIES/gplmanual.pl	${MAKE} html_manual	${MAKE} html_guide	rm -rf RELEASEDIR	$(MKDIR) RELEASEDIR	cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR	cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR	cp doc/org_dual_license.texi RELEASEDIR	cp doc/orgguide.pdf doc/orgcard.txt RELEASEDIR	cp RELEASEDIR/org-$(TAG).zip    RELEASEDIR/org.zip	cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gzupload_release:	rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/upload_manual:	rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/	rsync -avuz --delete doc/guide/ cdominik@orgmode.org:orgmode.org/guide/cleanall:	${MAKE} clean	rm -f lisp/org-install.elclean:	${MAKE} cleanelc	${MAKE} cleandoc	${MAKE} cleanrel	rm -f *~ */*~ */*/*~cleancontrib:	find contrib -name \*~ -exec rm {} \;cleanelc:	rm -f $(ELCFILES)cleandoc:	(cd doc; rm -f org.pdf org org.html orgcard.pdf)	(cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)	(cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)	(cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)	(cd doc; rm -rf manual)cleanrel:	rm -rf RELEASEDIR	rm -rf org-7.*	rm -rf org-7*zip org-7*tar.gz.el.elc:	$(ELC) $<push:	git-push git+ssh://repo.or.cz/srv/git/org-mode.git masterpushtag:	git-tag -m "Adding tag" -a $(TAG)	git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)pushreleasetag:	git-tag -m "Adding release tag" -a release_$(TAG)	git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)# Dependencieslisp/org.elc:		lisp/org-macs.el lisp/org-compat.el lisp/org-faces.ellisp/org-agenda.elc:	lisp/org.ellisp/org-ascii.elc:	lisp/org-exp.ellisp/org-attach.elc:	lisp/org.el lisp/org-id.ellisp/org-archive.elc:	lisp/org.ellisp/org-bbdb.elc:	lisp/org.ellisp/org-beamer.elc:	lisp/org.ellisp/org-bibtex.elc:	lisp/org.ellisp/org-capture.elc:	lisp/org.el lisp/org-mks.ellisp/org-clock.elc:	lisp/org.ellisp/org-colview.elc:	lisp/org.ellisp/org-colview-xemacs.elc:	lisp/org.ellisp/org-compat.elc:	lisp/org-macs.ellisp/org-crypt.elc:	lisp/org-crypt.el lisp/org.ellisp/org-ctags.elc:	lisp/org.ellisp/org-datetree.elc:	lisp/org.ellisp/org-docview.elc:	lisp/org.ellisp/org-entities.elc:lisp/org-exp.elc:	lisp/org.el lisp/org-agenda.ellisp/org-exp-blocks.elc: lisp/org.ellisp/org-latex.elc:	lisp/org.el lisp/org-exp.el lisp/org-beamer.ellisp/org-docbook.elc:	lisp/org.el lisp/org-exp.ellisp/org-faces.elc:	lisp/org-macs.el lisp/org-compat.ellisp/org-feed.elc:	lisp/org.ellisp/org-footnotes.elc:	lisp/org-macs.el lisp/org-compat.ellisp/org-freemind.elc:	lisp/org.ellisp/org-gnus.elc:	lisp/org.ellisp/org-html.elc:	lisp/org-exp.ellisp/org-habit.elc:	lisp/org.el lisp/org-agenda.ellisp/org-icalendar.elc:	lisp/org-exp.ellisp/org-id.elc:	lisp/org.ellisp/org-indent.elc:	lisp/org.el lisp/org-macs.el lisp/org-compat.ellisp/org-info.elc:	lisp/org.ellisp/org-inlinetask.elc:lisp/org-irc.elc:	lisp/org.ellisp/org-jsinfo.elc:	lisp/org.el lisp/org-exp.ellisp/org-list.elc:	lisp/org-macs.el lisp/org-compat.ellisp/org-mac-message.elc:	lisp/org.ellisp/org-macs.elc:lisp/org-mew.elc:	lisp/org.ellisp/org-mhe.elc:	lisp/org.ellisp/org-mks.elc:lisp/org-mobile.elc:	lisp/org.ellisp/org-mouse.elc:	lisp/org.ellisp/org-plot.elc:	lisp/org.el lisp/org-exp.el lisp/org-table.ellisp/org-publish.elc:lisp/org-protocol.elc:	lisp/org.ellisp/org-remember.elc:	lisp/org.ellisp/org-rmail.elc:	lisp/org.ellisp/org-src.elc:	lisp/org-macs.el lisp/org-compat.ellisp/org-table.elc:	lisp/org.ellisp/org-taskjuggler.elc: lisp/org.el lisp/org-exp.ellisp/org-timer.elc:	lisp/org.ellisp/org-vm.elc:	lisp/org.ellisp/org-w3m.elc:	lisp/org.ellisp/org-wl.elc:	lisp/org.ellisp/org-xoxo.elc:	lisp/org-exp.el
 |