summaryrefslogtreecommitdiff
path: root/community/notion/doc-build-fix.patch
blob: 45cc19725f7e90986143bb02919e108e0617ff10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff --git a/Makefile b/Makefile
index 8cb5b6c..11c3ca0 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,12 @@ FNTEXES=ioncore.exports mod_tiling.exports \
 	mod_query.exports de.exports mod_menu.exports \
 	mod_dock.exports mod_sp.exports mod_statusbar.exports
 
+TEXSOURCES=conf-bindings.tex confintro.tex conf-menus.tex \
+	conf-statusbar.tex conf.tex conf-winprops.tex cstyle.tex designnotes.tex \
+	de.tex fdl.tex fnref.tex fullhierarchy.tex hookref.tex luaif.tex \
+	macros.tex miscref.tex notionconf.tex notionnotes.tex objectsimpl.tex objects.tex \
+	prelim.tex statusd.tex tricks.tex
+
 RUBBER_DVI=rubber
 RUBBER_PS=rubber -p
 RUBBER_PDF=rubber -d
@@ -31,14 +37,17 @@ TARGETS = notionconf notionnotes
 nothing:
 	@ echo "Please read the README first."
 
-%-dvi:
+%-dvi: $(TEXSOURCES)
 	$(RUBBER_DVI) $*
-	
-%-ps:
+	touch $@
+
+%-ps: $(TEXSOURCES)
 	$(RUBBER_PS) $*
+	touch $@
 
-%-pdf:
+%-pdf: $(TEXSOURCES)
 	$(RUBBER_PDF) $*
+	touch $@
 
 # Install
 ######################################
@@ -48,30 +57,38 @@ install:
 	for d in $(DOCS); do \
 	    for e in ps pdf dvi; do \
 	      test -f $$d.$$e && $(INSTALL) -m $(DATA_MODE) $$d.$$e $(DOCDIR); \
-            done; \
+	    done; \
 	    $(INSTALLDIR) $(DOCDIR)/$$d; \
-            for i in $$d/*; do \
-                $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
+	    for i in $$d/*; do \
+	        $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
 	    done; \
-        done
+	    rm -f $(DOCDIR)/$$d/*.log; \
+	    rm -f $(DOCDIR)/$$d/WARNINGS; \
+	    rm -f $(DOCDIR)/$$d/*.aux; \
+	    rm -f $(DOCDIR)/$$d/*.idx; \
+	    rm -f $(DOCDIR)/$$d/*.tex; \
+	    rm -f $(DOCDIR)/$$d/*.pl; \
+	done
 
 # notionconf rules
 ######################################
 
-notionconf-dvi: fnlist.tex
-notionconf-ps: fnlist.tex
-notionconf-pdf: fnlist.tex
+notionconf-dvi: fnlist.tex $(TEXSOURCES)
+notionconf-ps: fnlist.tex $(TEXSOURCES)
+notionconf-pdf: fnlist.tex $(TEXSOURCES)
 
-notionconf-html: $(FNTEXES)
+notionconf-html: $(FNTEXES) $(TEXSOURCES)
 	$(L2H) -split 3 notionconf
 	cp notion.css notionconf
+	touch $@
 
 # notionnotes rules
 ######################################
 
-notionnotes-html: 
+notionnotes-html: $(TEXSOURCES)
 	$(L2H) -split 4 notionnotes
 	cp notion.css notionnotes
+	touch $@
 
 # More generic rules
 ######################################
@@ -94,7 +111,7 @@ all-html: $(patsubst %, %-html, $(TARGETS))
 
 clean:
 	rm -f $(FNTEXES) fnlist.tex
-	rm -f *.aux *.toc *.log
+	rm -f *.aux *.toc *.log *.out
 	rm -f *.idx *.ild *.ilg *.ind
         
 realclean: clean
@@ -111,7 +128,8 @@ $(TOPDIR)/%/exports.tex:
 	$(MAKE) -C $$(dirname $@) _exports_doc
 
 %.exports: $(TOPDIR)/%/exports.tex
-	cp $< $@
+	cat $< | sed 's|UTF8_STRING|UTF8\\_STRING|' >$@
+#	cp $< $@
 
 # Function list
 ######################################