Added ucsim and as docs to archive
[fw/sdcc] / doc / Makefile
index 93353048bcee3dfdf3bd6178061abb77c9de43c7..904e62c8dbe7a4c1d34ccb9943269c5b2aa82370 100644 (file)
@@ -30,7 +30,7 @@ $(MANUAL).html/index.html: $(MANUAL).tex $(MANUAL).ind ;#$(MANUAL).glo
        mv $< `basename $< .tex`.orig.tex
        sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
        sed 's,\\tabularnewline$$,\\\\,g' > $<
-       -latex2html -split 5 -show_section_numbers -local_icons -dir $(MANUAL).html $(MANUAL)
+       -latex2html -split 5 -show_section_numbers -local_icons -info "" -dir $(MANUAL).html $(MANUAL)
        mv `basename $< .tex`.orig.tex $<
 
 $(TSS).html/index.html: $(TSS).tex
@@ -40,7 +40,7 @@ $(TSS).html/index.html: $(TSS).tex
        mv $< `basename $< .tex`.orig.tex
        sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
        sed 's,\\tabularnewline$$,\\\\,g' > $<
-       -latex2html -split 0 -local_icons -dir $(TSS).html $(TSS)
+       -latex2html -split 0 -local_icons -info "" -dir $(TSS).html $(TSS)
        mv `basename $< .tex`.orig.tex $<
 
 $(CDB).html/index.html: $(CDB).tex
@@ -50,7 +50,7 @@ $(CDB).html/index.html: $(CDB).tex
        mv $< `basename $< .tex`.orig.tex
        sed 's,-\\/-,-\\/-\\/-,g' < `basename $< .tex`.orig.tex | \
        sed 's,\\tabularnewline$$,\\\\,g' > $<
-       -latex2html -split 0 -show_section_numbers -local_icons -dir $(CDB).html $(CDB)
+       -latex2html -split 0 -show_section_numbers -local_icons -info "" -dir $(CDB).html $(CDB)
        mv `basename $< .tex`.orig.tex $<
 
 %.txt: %.lyx
@@ -81,4 +81,21 @@ $(CDB).html/index.html: $(CDB).tex
        # the glossary, not implemented yet
        # makeindex -s l2hglo.ist -o $@ $<
 
+archive: all
+       rm -rf sdcc-doc sdcc-doc.tar.bz2
+       mkdir sdcc-doc
+       rsync -rC avr z80 *.pdf *.txt sdcc-doc
+
+       for doc in $(MANUAL) $(TSS) $(CDB); do \
+         rsync -R $$doc.html/*.html $$doc.html/*.png $$doc.html/*.css sdcc-doc/; \
+       done
+
+       mkdir sdcc-doc/as
+       rsync -rC ../as/doc/* sdcc-doc/as/
+
+       mkdir sdcc-doc/ucsim
+       cd ../sim/ucsim/doc; rsync *.html *.jpg *.gif *.fig ../../../doc/sdcc-doc/ucsim/
+
+       tar -c sdcc-doc | bzip2 -9 > sdcc-doc.tar.bz2
+
 include clean.mk