moved installed docs, removed obsoletes, fixed makefiles to do a proper distclean...
[fw/sdcc] / as / Makefile
1 PRJDIR = ..
2 include $(PRJDIR)/Makefile.common
3
4 PORTS = z80 gbz80
5 DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt
6
7 all:
8         $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/
9
10 install: all install-doc
11         $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'`
12         $(STRIP) `echo $(bindir)/as-z80|sed '$(transform)'`
13         $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
14         $(STRIP) `echo $(bindir)/as-gbz80|sed '$(transform)'`
15
16 install-doc:
17         $(INSTALL) -d $(docdir)/aslink
18         cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
19
20 uninstall:
21         cd $(bindir); rm -f as-z80 as-gbz80
22
23 include clean.mk