Added documentation install targets
[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 clean:
11         $(MAKE) -C z80 clean
12
13 install: install-doc
14         $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'`
15         $(STRIP) -s `echo $(bindir)/as-z80|sed '$(transform)'`
16         $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
17         $(STRIP) -s `echo $(bindir)/as-gbz80|sed '$(transform)'`
18
19 install-doc:
20         $(INSTALL) -d $(docdir)/aslink
21         cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink