1top_builddir = ../..
2
3all: buildparts html
4
5buildparts:
6	cd parts; \
7	rm -f *.html; \
8	for i in `/bin/ls ../../../examples/*.cpp`; \
9	do \
10		BASENAME=`/bin/basename $$i`; \
11		echo "processing $$BASENAME"; \
12		gvim $$i +":runtime! syntax/2html.vim" +"colorscheme default" +":x! ./$$BASENAME.html" +"q!"; \
13		sleep 2; \
14	done
15	for i in `/bin/ls parts/*.html`; \
16	do \
17		sed -i -e "/<html>/d" -e "/<head>/d" -e "/<title>.*<\/title>/d" -e "/<meta.*/d" -e "/<\/head>/d" -e "/<body.*/d" -e "/<\/body>/d" -e "/<\/html>/d" -e "/<\!DOCTYPE/d" $$i; \
18	done
19
20html:
21	for i in `/bin/ls *.in`; \
22	do \
23		BASENAME=`/bin/basename $$i .in`; \
24		echo "processing $$BASENAME"; \
25		./insert.pl $$i > $$BASENAME; \
26	done
27