2012-01-02 19:07:04 +00:00
|
|
|
.SUFFIXES: # we don't need default suffix rules
|
2011-07-17 12:49:43 +00:00
|
|
|
ifeq ($(MAKELEVEL), 0)
|
|
|
|
$(error This make needs to be started as a sub-make from the toplevel directory.)
|
|
|
|
endif
|
2012-04-21 14:55:57 +00:00
|
|
|
.PHONY: all info html pdf card manual guide install \
|
2012-04-30 19:37:57 +00:00
|
|
|
clean cleanall clean-install
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2012-04-22 06:22:31 +00:00
|
|
|
all: $(ORG_MAKE_DOC)
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2019-03-19 00:57:36 +00:00
|
|
|
info: org orgguide
|
2011-07-17 12:49:43 +00:00
|
|
|
|
|
|
|
html: org.html
|
|
|
|
|
|
|
|
pdf: org.pdf orgguide.pdf
|
|
|
|
|
|
|
|
card: orgcard.pdf orgcard_letter.pdf orgguide.pdf
|
|
|
|
|
2012-08-25 06:35:02 +00:00
|
|
|
ifneq ($(SERVERMK),)
|
2011-07-17 12:49:43 +00:00
|
|
|
manual guide::
|
2012-05-10 18:53:59 +00:00
|
|
|
-$(RMR) $@
|
|
|
|
$(MKDIR) $@
|
|
|
|
manual:: org.texi org-version.inc
|
2011-07-17 12:49:43 +00:00
|
|
|
$(TEXI2HTML) -o $@ $<
|
2012-08-26 12:03:20 +00:00
|
|
|
../mk/mansplit.pl $@/*
|
2012-05-17 06:41:23 +00:00
|
|
|
guide:: orgguide.texi org-version.inc
|
2011-07-17 12:49:43 +00:00
|
|
|
$(TEXI2HTML) -o $@ $<
|
2012-08-26 12:03:20 +00:00
|
|
|
../mk/guidesplit.pl $@/*
|
2012-08-25 06:35:02 +00:00
|
|
|
endif
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2019-03-19 00:57:36 +00:00
|
|
|
org.texi orgguide.texi: org-manual.org org-guide.org
|
2018-05-09 00:23:10 +00:00
|
|
|
$(BATCH) \
|
|
|
|
--eval '(add-to-list '"'"'load-path "../lisp")' \
|
|
|
|
--eval '(load "../mk/org-fixup.el")' \
|
|
|
|
--eval '(org-make-manuals)'
|
|
|
|
|
2012-04-30 19:37:57 +00:00
|
|
|
org-version.inc: org.texi
|
2012-04-21 13:10:30 +00:00
|
|
|
@echo "org-version: $(ORGVERSION) ($(GITVERSION))"
|
2012-04-16 17:35:55 +00:00
|
|
|
@echo "@c automatically generated, do not edit" > org-version.inc
|
|
|
|
@echo "@set VERSION $(ORGVERSION) ($(GITVERSION))" >> org-version.inc
|
|
|
|
@echo "@set DATE $(DATE)" >> org-version.inc
|
2011-10-28 08:33:15 +00:00
|
|
|
|
2017-06-23 18:54:02 +00:00
|
|
|
org-version.tex: orgcard.tex
|
2017-06-30 17:06:18 +00:00
|
|
|
@printf "org-version: $(ORGVERSION) ($(GITVERSION))\n"
|
|
|
|
@printf "%% automatically generated, do not edit\n" > org-version.tex
|
|
|
|
@printf "\def\orgversionnumber{$(ORGVERSION)}\n" >> org-version.tex
|
|
|
|
@printf "\def\\\\versionyear{$(YEAR)}\n" >> org-version.tex
|
|
|
|
@printf "\def\year{$(YEAR)}\n" >> org-version.tex
|
2017-06-23 18:54:02 +00:00
|
|
|
|
2019-03-19 00:57:36 +00:00
|
|
|
install: org orgguide
|
2012-01-02 19:07:04 +00:00
|
|
|
if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
|
|
|
|
$(CP) org $(DESTDIR)$(infodir)
|
2019-03-19 00:57:36 +00:00
|
|
|
$(CP) orgguide $(DESTDIR)$(infodir)
|
2012-01-02 19:07:04 +00:00
|
|
|
$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) org
|
2019-03-19 00:57:36 +00:00
|
|
|
$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) orgguide
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2011-07-18 19:05:52 +00:00
|
|
|
clean:
|
2019-03-19 00:57:36 +00:00
|
|
|
$(RM) org orgguide *.pdf *.html *_letter.tex org-version.inc \
|
|
|
|
org-version.tex *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys \
|
|
|
|
*.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
|
2011-07-18 19:05:52 +00:00
|
|
|
cleanall: clean
|
|
|
|
$(RMR) guide manual
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2011-07-18 15:55:23 +00:00
|
|
|
clean-install:
|
2012-01-02 19:07:04 +00:00
|
|
|
$(RM) $(DESTDIR)$(infodir)/org*
|
|
|
|
$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove org
|
2019-03-19 00:57:36 +00:00
|
|
|
$(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove orgguide
|
2011-07-18 15:55:23 +00:00
|
|
|
|
2012-05-26 20:32:21 +00:00
|
|
|
.SUFFIXES: .texi .tex .txt _letter.tex
|
2011-07-17 12:49:43 +00:00
|
|
|
|
2012-04-21 13:10:30 +00:00
|
|
|
%: %.texi org-version.inc
|
2011-07-17 12:49:43 +00:00
|
|
|
$(MAKEINFO) --no-split $< -o $@
|
|
|
|
|
2014-01-07 20:23:45 +00:00
|
|
|
# the following two lines work around a bug in some versions of texi2dvi
|
|
|
|
%.pdf: LC_ALL=C
|
|
|
|
%.pdf: LANG=C
|
2012-04-21 13:10:30 +00:00
|
|
|
%.pdf: %.texi org-version.inc
|
2011-07-17 12:49:43 +00:00
|
|
|
$(TEXI2PDF) $<
|
2017-06-23 18:54:02 +00:00
|
|
|
%.pdf: %.tex org-version.tex
|
2011-07-17 12:49:43 +00:00
|
|
|
PDFLATEX=$(PDFTEX) $(TEXI2PDF) $<
|
|
|
|
|
2012-04-21 13:10:30 +00:00
|
|
|
%.html: %.texi org-version.inc
|
2011-07-17 12:49:43 +00:00
|
|
|
$(TEXI2HTML) --no-split -o $@ $<
|
2012-08-25 06:35:02 +00:00
|
|
|
ifneq ($(SERVERMK),)
|
2012-08-26 12:03:20 +00:00
|
|
|
../mk/manfull.pl $@
|
2011-07-17 12:49:43 +00:00
|
|
|
|
|
|
|
%.txt: %.tex
|
2012-08-26 12:03:20 +00:00
|
|
|
perl ../mk/orgcard2txt.pl $< > $@
|
2012-08-25 06:35:02 +00:00
|
|
|
endif
|
2011-07-17 12:49:43 +00:00
|
|
|
|
|
|
|
%_letter.tex: %.tex
|
2012-05-26 20:32:21 +00:00
|
|
|
$(BATCH) \
|
|
|
|
--eval '(add-to-list '"'"'load-path "../lisp")' \
|
|
|
|
--eval '(load "org-compat.el")' \
|
2012-08-26 12:03:20 +00:00
|
|
|
--eval '(load "../mk/org-fixup.el")' \
|
2012-05-26 20:32:21 +00:00
|
|
|
--eval '(org-make-letterformat "$(<F)" "$(@F)")'
|