updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / notion-xft / doc-build-fix.patch
blob45cc19725f7e90986143bb02919e108e0617ff10
1 diff --git a/Makefile b/Makefile
2 index 8cb5b6c..11c3ca0 100644
3 --- a/Makefile
4 +++ b/Makefile
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
15 RUBBER_DVI=rubber
16 RUBBER_PS=rubber -p
17 RUBBER_PDF=rubber -d
18 @@ -31,14 +37,17 @@ TARGETS = notionconf notionnotes
19 nothing:
20 @ echo "Please read the README first."
22 -%-dvi:
23 +%-dvi: $(TEXSOURCES)
24 $(RUBBER_DVI) $*
26 -%-ps:
27 + touch $@
29 +%-ps: $(TEXSOURCES)
30 $(RUBBER_PS) $*
31 + touch $@
33 -%-pdf:
34 +%-pdf: $(TEXSOURCES)
35 $(RUBBER_PDF) $*
36 + touch $@
38 # Install
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); \
44 - done; \
45 + done; \
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; \
51 done; \
52 - done
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; \
59 + done
61 # notionconf rules
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
75 + touch $@
77 # notionnotes rules
78 ######################################
80 -notionnotes-html:
81 +notionnotes-html: $(TEXSOURCES)
82 $(L2H) -split 4 notionnotes
83 cp notion.css notionnotes
84 + touch $@
86 # More generic rules
87 ######################################
88 @@ -94,7 +111,7 @@ all-html: $(patsubst %, %-html, $(TARGETS))
90 clean:
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
96 realclean: clean
97 @@ -111,7 +128,8 @@ $(TOPDIR)/%/exports.tex:
98 $(MAKE) -C $$(dirname $@) _exports_doc
100 %.exports: $(TOPDIR)/%/exports.tex
101 - cp $< $@
102 + cat $< | sed 's|UTF8_STRING|UTF8\\_STRING|' >$@
103 +# cp $< $@
105 # Function list
106 ######################################