we don't need this anymore
[fw/sdcc] / as / Makefile
index 111524f2326c02e0bff53d68c9b64acbc9691ddb..ab333afb6ed16e2fe29cc929e29ef1828fa521aa 100644 (file)
@@ -2,9 +2,22 @@ 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/
+       $(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) `echo $(bindir)/as-z80|sed '$(transform)'`
+       $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/as-gbz80|sed '$(transform)'`
+
+install-doc:
+       $(INSTALL) -d $(docdir)/aslink
+       cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
+
+uninstall:
+       cd $(bindir); rm -f as-z80 as-gbz80
+
+include clean.mk