Added documentation install targets
[fw/sdcc] / doc / Makefile
index 34bfa00b3d39c3dae1d0d8977d2efd2762c1272f..ccfb08be35ec609114a7e8f108e64d7715a1b88f 100644 (file)
@@ -1,4 +1,8 @@
 # Very simple Makefile for converting the design doc into something useful.
+TOPDIR = ..
+
+include $(TOPDIR)/Makefile.common
+
 TEX = latex
 
 S = test_suite_spec.tex
@@ -17,5 +21,9 @@ all: $(PS) $(PDF) $(HTML)
 %.html: %.tex
        latex2html -no_subdir -split 0 $<
 
+install:
+       $(INSTALL) -d $(docdir)
+       cp -rf *.html SDCCUdoc.* *.txt *.tex z80 avr $(docdir)
+
 clean:
        rm -f $(PS) $(PDF) *.log *.aux *~