2011-07-16 16:49:24 -04:00
|
|
|
.PHONY: default all up2 update compile lisp\
|
2011-07-12 16:31:41 -04:00
|
|
|
install info html pdf card doc install-lisp install-info \
|
|
|
|
autoloads cleanall clean cleancontrib cleanelc cleandoc cleanrel
|
|
|
|
.NOTPARALLEL: .PHONY
|
2011-07-12 13:45:59 -04:00
|
|
|
# Additional distribution files
|
|
|
|
DISTFILES_extra= Makefile request-assign-future.txt contrib etc
|
2011-07-16 16:49:24 -04:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
lisp compile:
|
|
|
|
$(MAKE) -C lisp compile
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
all: lisp $(INFOFILES)
|
2011-07-12 13:45:59 -04:00
|
|
|
|
|
|
|
up2: update
|
|
|
|
sudo ${MAKE} install
|
|
|
|
|
|
|
|
update:
|
|
|
|
git pull
|
|
|
|
${MAKE} clean
|
|
|
|
${MAKE} all
|
|
|
|
|
|
|
|
install: install-lisp
|
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
info: doc/org
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
html: doc/org.html
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
pdf: doc/org.pdf doc/orgguide.pdf
|
2011-07-12 13:45:59 -04:00
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
card: doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txt
|
|
|
|
|
|
|
|
doc: html pdf card
|
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
install-lisp:
|
2011-07-12 13:45:59 -04:00
|
|
|
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
|
2011-07-16 16:49:24 -04:00
|
|
|
$(MAKE) -C lisp install
|
2011-07-12 13:45:59 -04:00
|
|
|
|
|
|
|
install-info: $(INFOFILES)
|
|
|
|
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
|
|
|
|
$(CP) $(INFOFILES) $(infodir)
|
|
|
|
$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
|
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
autoloads: lisp maint.mk
|
|
|
|
$(MAKE) -C lisp autoloads
|
2011-07-12 13:45:59 -04:00
|
|
|
|
|
|
|
doc/org: doc/org.texi
|
|
|
|
(cd doc && $(MAKEINFO) --no-split org.texi -o org)
|
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
doc/%.pdf: LC_ALL=C # work around a bug in texi2dvi
|
|
|
|
doc/%.pdf: LANG=C # work around a bug in texi2dvi
|
|
|
|
doc/%.pdf: doc/%.texi
|
|
|
|
(cd doc && $(TEXI2PDF) $(<F))
|
|
|
|
doc/%.pdf: doc/%.tex
|
|
|
|
(cd doc && $(TEXI2PDF) $(<F))
|
2011-07-12 13:45:59 -04:00
|
|
|
|
|
|
|
doc/org.html: doc/org.texi
|
|
|
|
(cd doc && $(TEXI2HTML) --no-split -o org.html org.texi)
|
|
|
|
UTILITIES/manfull.pl doc/org.html
|
|
|
|
|
|
|
|
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.tex
|
|
|
|
|
2011-07-12 16:31:41 -04:00
|
|
|
cleanall: clean
|
2011-07-16 16:49:24 -04:00
|
|
|
$(MAKE) -C lisp cleanall
|
2011-07-12 16:31:41 -04:00
|
|
|
|
2011-07-16 16:49:24 -04:00
|
|
|
clean: cleandoc cleanrel cleancontrib
|
|
|
|
$(MAKE) -C lisp clean
|
2011-07-12 16:31:41 -04:00
|
|
|
-$(FIND) . -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleancontrib:
|
|
|
|
-$(FIND) contrib -name \*~ -exec $(RM) {} \;
|
|
|
|
|
|
|
|
cleandoc:
|
|
|
|
-(cd doc && rm -f org.pdf org org.html orgcard.pdf orgguide.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
|