1 diff --git a/Makefile b/Makefile
2 index 8cb5b6c..11c3ca0 100644
5 @@ -19,6 +19,12 @@ FNTEXES=ioncore.exports mod_tiling.exports \
6 mod_query.exports de.exports mod_menu.exports \
7 mod_dock.exports mod_sp.exports mod_statusbar.exports
9 +TEXSOURCES=conf-bindings.tex confintro.tex conf-menus.tex \
10 + conf-statusbar.tex conf.tex conf-winprops.tex cstyle.tex designnotes.tex \
11 + de.tex fdl.tex fnref.tex fullhierarchy.tex hookref.tex luaif.tex \
12 + macros.tex miscref.tex notionconf.tex notionnotes.tex objectsimpl.tex objects.tex \
13 + prelim.tex statusd.tex tricks.tex
18 @@ -31,14 +37,17 @@ TARGETS = notionconf notionnotes
20 @ echo "Please read the README first."
39 ######################################
40 @@ -48,30 +57,38 @@ install:
41 for d in $(DOCS); do \
42 for e in ps pdf dvi; do \
43 test -f $$d.$$e && $(INSTALL) -m $(DATA_MODE) $$d.$$e $(DOCDIR); \
46 $(INSTALLDIR) $(DOCDIR)/$$d; \
47 - for i in $$d/*; do \
48 - $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
49 + for i in $$d/*; do \
50 + $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
53 + rm -f $(DOCDIR)/$$d/*.log; \
54 + rm -f $(DOCDIR)/$$d/WARNINGS; \
55 + rm -f $(DOCDIR)/$$d/*.aux; \
56 + rm -f $(DOCDIR)/$$d/*.idx; \
57 + rm -f $(DOCDIR)/$$d/*.tex; \
58 + rm -f $(DOCDIR)/$$d/*.pl; \
62 ######################################
64 -notionconf-dvi: fnlist.tex
65 -notionconf-ps: fnlist.tex
66 -notionconf-pdf: fnlist.tex
67 +notionconf-dvi: fnlist.tex $(TEXSOURCES)
68 +notionconf-ps: fnlist.tex $(TEXSOURCES)
69 +notionconf-pdf: fnlist.tex $(TEXSOURCES)
71 -notionconf-html: $(FNTEXES)
72 +notionconf-html: $(FNTEXES) $(TEXSOURCES)
73 $(L2H) -split 3 notionconf
74 cp notion.css notionconf
78 ######################################
81 +notionnotes-html: $(TEXSOURCES)
82 $(L2H) -split 4 notionnotes
83 cp notion.css notionnotes
87 ######################################
88 @@ -94,7 +111,7 @@ all-html: $(patsubst %, %-html, $(TARGETS))
91 rm -f $(FNTEXES) fnlist.tex
92 - rm -f *.aux *.toc *.log
93 + rm -f *.aux *.toc *.log *.out
94 rm -f *.idx *.ild *.ilg *.ind
97 @@ -111,7 +128,8 @@ $(TOPDIR)/%/exports.tex:
98 $(MAKE) -C $$(dirname $@) _exports_doc
100 %.exports: $(TOPDIR)/%/exports.tex
102 + cat $< | sed 's|UTF8_STRING|UTF8\\_STRING|' >$@
106 ######################################