dos cvs had problem with .lnk file
[fw/sdcc] / as / Makefile
index a43a433bd28b156e9abb2c859776750aba650465..f50fd1348ffa981b3f69e1b7e9d478db6f3be57e 100644 (file)
@@ -2,12 +2,19 @@ PRJDIR = ..
 include $(PRJDIR)/Makefile.common
 
 PORTS = z80 gbz80
+DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt
 
 all:
        $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/
 
-clean:
-       $(MAKE) -C z80 clean
+install: all install-doc
+       $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'`
+       $(STRIP) -s `echo $(bindir)/as-z80|sed '$(transform)'`
+       $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
+       $(STRIP) -s `echo $(bindir)/as-gbz80|sed '$(transform)'`
 
-# dummy install target to prevent warnings
-install:
+install-doc:
+       $(INSTALL) -d $(docdir)/aslink
+       cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
+
+include clean.mk