* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
[fw/sdcc] / link / Makefile
index e58ca903e5037339c10c12af28b4e1db176c8845..31979674f03b08c9e26ec0594d130b00f374f323 100644 (file)
@@ -8,12 +8,12 @@ all:
        $(MAKE) -C z80 _link-z80 _link-gbz80 E=$(E) BUILDDIR=../../bin/
 
 install: all
-       $(INSTALL) $(PRJDIR)/bin/link-z80 `echo $(bindir)/link-z80|sed '$(transform)'`
-       $(STRIP) `echo $(bindir)/link-z80|sed '$(transform)'`
-       $(INSTALL) $(PRJDIR)/bin/link-gbz80 `echo $(bindir)/link-gbz80|sed '$(transform)'`
-       $(STRIP) `echo $(bindir)/link-gbz80|sed '$(transform)'`
+       $(INSTALL) $(PRJDIR)/bin/link-z80$(EXEEXT) `echo $(DESTDIR)$(bindir)/link-z80$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(DESTDIR)$(bindir)/link-z80$(EXEEXT)|sed '$(transform)'`
+       $(INSTALL) $(PRJDIR)/bin/link-gbz80$(EXEEXT) `echo $(DESTDIR)$(bindir)/link-gbz80$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(DESTDIR)$(bindir)/link-gbz80$(EXEEXT)|sed '$(transform)'`
 
 uninstall:
-       cd $(bindir); rm -f link-z80 link-gbz80
+       cd $(DESTDIR)$(bindir); rm -f link-z80$(EXEEXT) link-gbz80$(EXEEXT)
 
 include clean.mk