| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 | # 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)/info##----------------------------------------------------------------------## YOU MAY NEED TO EDIT THESE##----------------------------------------------------------------------# Using emacs in batch mode.# BATCH=$(EMACS) -batch -q# BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \".\")"BATCH=$(EMACS) -batch -q -eval                             \ "(progn (add-to-list (quote load-path) \".\")             \        (add-to-list (quote load-path) \"$(lispdir)\"))"# 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-sections# How to move the byte compiled files to their destination.  MV = mv# How to copy the lisp files to their distination.CP = cp -p##----------------------------------------------------------------------##  BELOW THIS LINE ON YOUR OWN RISK!##----------------------------------------------------------------------# The following variables need to be defined by the maintainerLISPFILES0 = org.el org-publish.el org-mouse.el org-export-latex.el \	     org-mac-message.elLISPFILES  = $(LISPFILES0) org-install.el ELCFILES   = $(LISPFILES:.el=.elc)DOCFILES   = org.texi org.pdf orgCARDFILES  = orgcard.tex orgcard.pdf orgcard_letter.pdfTEXIFILES  = org.texiINFOFILES  = orgHG_RELEASES = ../org-mode-all-releases-hg/.SUFFIXES: .el .elc .texiSHELL = /bin/shDISTFILES=  README ${LISPFILES} ${DOCFILES} ${CARDFILES} \	Makefile dir ChangeLog request-assign-future.txt \	CONTRIBDISTFILES_xemacs=  xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/READMEall:	$(ELCFILES)install: install-lispdoc: org.html org.pdf orgcard.pdf orgcard_letter.pdfp:	make pdf && open org.pdfc:	make card && gv orgcard.psinstall-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-noutline: xemacs/noutline.elc	if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;	$(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)org-install.el: $(LISPFILES0)	$(BATCH) --eval "(require 'autoload)" \		--eval '(find-file "org-install.el")'  \		--eval '(erase-buffer)' \		--eval '(generate-file-autoloads "org.el")' \		--eval '(generate-file-autoloads "org-mouse.el")' \		--eval '(generate-file-autoloads "org-publish.el")' \		--eval '(generate-file-autoloads "org-export-latex.el")' \		--eval '(insert "\n(provide (quote org-install))\n")' \		--eval '(save-buffer)'org.elc:		org.elorg-publish.elc:	org-publish.elorg-install.elc:	org-install.elxemacs/noutline.elc: xemacs/noutline.elorg:	org.texi	$(MAKEINFO) --no-split org.texi -o orgorg.pdf: org.texi	$(TEXI2PDF) org.texiorg.html: org.texi	$(TEXI2HTML) --no-split -o org.html org.texiorgcard.dvi: orgcard.tex	tex orgcard.texorgcard.pdf: orgcard.dvi	dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -orgcard.ps: orgcard.dvi	dvips -t landscape -o orgcard.ps orgcard.dvi orgcard_letter.dvi: orgcard.tex	perl -pe 's/letterpaper=0/letterpaper=1/' orgcard.tex > orgcard_letter.tex	tex orgcard_letter.texorgcard_letter.pdf: orgcard_letter.dvi	dvips -q -f -t landscape orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard_letter.pdf -c .setpdfwrite -orgcard_letter.ps: orgcard_letter.dvi	dvips -t landscape -o orgcard_letter.ps orgcard_letter.dvi # Below here are special targets for maintenance onlywebfiles:	(cd ORGWEBPAGE; emacs -batch -l ~/.emacs index.org -f org-publish-current-project)web:	make webfiles	(cd ORGWEBPAGE/tmp; lftp -f ../../../org-mode-proprietary/ftp_upload_website)html: org.htmlhtml_split: org.texi	rm -rf manual	mkdir manual	$(TEXI2HTML) -o manual org.texiinfo:		$(MAKEINFO) --no-split org.texi -o orgpdf:	org.pdfcard:	orgcard.pdf orgcard.ps orgcard_letter.pdf orgcard_letter.psdistfile:	@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi	touch org.texi orgcard.tex	make info	make doc	make org-install.el	rm -rf org-$(TAG) org-$(TAG).zip	$(MKDIR) org-$(TAG)	$(MKDIR) org-$(TAG)/xemacs	cp -r $(DISTFILES) org-$(TAG)/	cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/	zip -r org-$(TAG).zip org-$(TAG)	gtar zcvf org-$(TAG).tar.gz org-$(TAG)release:	@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi	make webfiles	make distfile	make doc	make html_split	rm -rf RELEASEDIR	$(MKDIR) RELEASEDIR	cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR	cp org.pdf orgcard.pdf org.texi org.html RELEASEDIR	cp ORGWEBPAGE/tmp/*.html   RELEASEDIR#	cp ORGWEBPAGE/tmp/*.el     RELEASEDIR	cp ORGWEBPAGE/tmp/*.txt    RELEASEDIR	cp ORGWEBPAGE/tmp/*.css    RELEASEDIR#	cp ORGWEBPAGE/tmp/*.jpg    RELEASEDIR	cp RELEASEDIR/org-$(TAG).zip    RELEASEDIR/org.zip	cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz	(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)	cp -r org-$(TAG)/* $(HG_RELEASES)	(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))trackrelease:	(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)	cp -r org-$(TAG)/* $(HG_RELEASES)	(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))upload_release:	(cd RELEASEDIR; lftp -f ../../org-mode-proprietary/ftp_upload_release)upload_manual:	lftp -f ../org-mode-proprietary/ftp_upload_manualrelup:	make release	make upload_release	make upload_manualclean:	rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps	rm -f *~ 	rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs	rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps	rm -f orgcard_letter.tex orgcard_letter.pdf	rm -f org-install.el	rm -rf manual	rm -rf RELEASEDIR.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)
 |