Fix typo.
[coreboot.git] / util / newconfig / Makefile
1 ALL: $(shell echo *.g | sed s/\\.g/\\.py/g )
2
3 %.py: %.g yapps2.py yappsrt.py Makefile
4         python yapps2.py $<
5
6 DOC:    yapps2.ps yapps2.pdf manual/index.html
7
8 yapps2.ps: yapps2.dvi
9         dvips -q yapps2.dvi -o yapps2.ps
10
11 yapps2.pdf: yapps2.ps
12         ps2pdf yapps2.ps
13
14 yapps2.dvi: yapps2.tex
15         latex yapps2.tex
16
17 manual/index.html: yapps2.aux yapps2.tex
18         rm manual/yapps2.css
19         latex2html -dir 'manual' -mkdir -lcase_tags -font_size 12pt -split 4 -toc_depth 4 -html_version 4.0,unicode,table -t 'Yapps 2.0 Manual' -address 'Amit J Patel, amitp@cs.stanford.edu' -info 0 -show_section_numbers -up_title 'Yapps Page' -up_url 'http://theory.stanford.edu/~amitp/yapps/' -strict -image_type png yapps2.tex
20         echo '@import url("http://www-cs-students.stanford.edu/~amitp/amitp.css");' > manual/yapps2-new.css
21         echo 'hr { display:none; }' >> manual/yapps2-new.css
22         echo 'h1 br, h2 br { display:none; }' >>manual/yapps2-new.css
23         cat manual/yapps2.css >> manual/yapps2-new.css
24         rm manual/yapps2.css
25         mv manual/yapps2-new.css manual/yapps2.css
26
27 DISTRIB:
28         cd ..; zip -u yapps2.zip yapps2/{LICENSE,yapps2.py,yappsrt.py,parsedesc.g,examples/*.g,NOTES,yapps2.tex,Makefile,manual/*.html,manual/*.css,manual/*.png}
29
30 clean:
31         rm -f config.py yappsrt.pyc parsedesc.py