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 \
9 all: info html pdf card
15 pdf
: org.pdf orgguide.pdf
17 card
: orgcard.pdf orgcard_letter.pdf orgguide.pdf
20 $(RMR
) $@
; $(MKDIR
) $@
23 ..
/UTILITIES
/mansplit.pl
$@
/*
26 ..
/UTILITIES
/guidesplit.pl
$@
/*
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
36 if
[ ! -d
$(DESTDIR
)$(infodir) ]; then
$(MKDIR
) $(DESTDIR
)$(infodir); else true
; fi
;
37 $(CP
) org
$(DESTDIR
)$(infodir)
38 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) org
41 $(RM
) org
*.pdf
*.html
*_letter.
tex \
42 *.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs \
43 *.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps org-version.inc
48 $(RM
) $(DESTDIR
)$(infodir)/org
*
49 $(INSTALL_INFO
) --infodir=$(DESTDIR
)$(infodir) --remove org
51 .SUFFIXES
: .texi .
tex .txt
53 %: %.texi org-version.inc
54 $(MAKEINFO
) --no-split
$< -o
$@
56 %.pdf
: LC_ALL
=C
# work around a bug in texi2dvi
57 %.pdf
: LANG
=C
# work around a bug in texi2dvi
58 %.pdf
: %.texi org-version.inc
61 PDFLATEX
=$(PDFTEX
) $(TEXI2PDF
) $<
63 %.html
: %.texi org-version.inc
64 $(TEXI2HTML
) --no-split
-o
$@
$<
65 ..
/UTILITIES
/manfull.pl
$@
68 perl ..
/UTILITIES
/orgcard2txt.pl
$< > $@
71 $(SED
) -e
's/\\pdflayout=(0l)/\\pdflayout=(1l)/' \