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
21 manual
:: org.texi org-version.inc
23 ..
/UTILITIES
/mansplit.pl
$@
/*
24 guide
:: orgguide.texi org-version.inc
26 ..
/UTILITIES
/guidesplit.pl
$@
/*
28 org-version.inc
: org.texi
29 @echo
"org-version: $(ORGVERSION) ($(GITVERSION))"
30 @echo
"@c automatically generated, do not edit" > org-version.inc
31 @echo
"@set VERSION $(ORGVERSION) ($(GITVERSION))" >> org-version.inc
32 @echo
"@set DATE $(DATE)" >> org-version.inc
35 if
[ ! -d
$(DESTDIR
)$(infodir) ]; then
$(MKDIR
) $(DESTDIR
)$(infodir); else true
; fi
;
36 $(CP
) org
$(DESTDIR
)$(infodir)
37 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) org
40 $(RM
) org
*.pdf
*.html
*_letter.
tex org-version.inc \
41 *.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs \
42 *.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
47 $(RM
) $(DESTDIR
)$(infodir)/org
*
48 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) --remove org
50 .SUFFIXES
: .texi .
tex .txt _letter.
tex
52 %: %.texi org-version.inc
53 $(MAKEINFO
) --no-split
$< -o
$@
55 %.pdf
: LC_ALL
=C
# work around a bug in texi2dvi
56 %.pdf
: LANG
=C
# work around a bug in texi2dvi
57 %.pdf
: %.texi org-version.inc
60 PDFLATEX
=$(PDFTEX
) $(TEXI2PDF
) $<
62 %.html
: %.texi org-version.inc
63 $(TEXI2HTML
) --no-split
-o
$@
$<
64 ..
/UTILITIES
/manfull.pl
$@
67 perl ..
/UTILITIES
/orgcard2txt.pl
$< > $@
71 --eval
'(add-to-list '"'"'load-path "../lisp")' \
72 --eval
'(load "org-compat.el")' \
73 --eval
'(load "../UTILITIES/org-fixup.el")' \
74 --eval
'(org-make-letterformat "$(<F)" "$(@F)")'