1 .SUFFIXES
: # we don't need default suffix rules
3 $(error This make needs to be started
as a sub-make from the toplevel directory.
)
5 .PHONY
: all info html pdf card manual guide
install \
6 clean cleanall clean-install
14 pdf
: org.pdf orgguide.pdf
16 card
: orgcard.pdf orgcard_letter.pdf orgguide.pdf
22 manual
:: org.texi org-version.inc
24 ..
/mk
/mansplit.pl
$@
/*
25 guide
:: orgguide.texi org-version.inc
27 ..
/mk
/guidesplit.pl
$@
/*
30 org-version.inc
: org.texi
31 @echo
"org-version: $(ORGVERSION) ($(GITVERSION))"
32 @echo
"@c automatically generated, do not edit" > org-version.inc
33 @echo
"@set VERSION $(ORGVERSION) ($(GITVERSION))" >> org-version.inc
34 @echo
"@set DATE $(DATE)" >> org-version.inc
37 if
[ ! -d
$(DESTDIR
)$(infodir) ]; then
$(MKDIR
) $(DESTDIR
)$(infodir); else true
; fi
;
38 $(CP
) org
$(DESTDIR
)$(infodir)
39 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) org
42 $(RM
) org
*.pdf
*.html
*_letter.
tex org-version.inc \
43 *.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs \
44 *.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
49 $(RM
) $(DESTDIR
)$(infodir)/org
*
50 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) --remove org
52 .SUFFIXES
: .texi .
tex .txt _letter.
tex
54 %: %.texi org-version.inc
55 $(MAKEINFO
) --no-split
$< -o
$@
57 # the following two lines work around a bug in some versions of texi2dvi
60 %.pdf
: %.texi org-version.inc
63 PDFLATEX
=$(PDFTEX
) $(TEXI2PDF
) $<
65 %.html
: %.texi org-version.inc
66 $(TEXI2HTML
) --no-split
-o
$@
$<
71 perl ..
/mk
/orgcard2txt.pl
$< > $@
76 --eval
'(add-to-list '"'"'load-path "../lisp")' \
77 --eval
'(load "org-compat.el")' \
78 --eval
'(load "../mk/org-fixup.el")' \
79 --eval
'(org-make-letterformat "$(<F)" "$(@F)")'