* device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
[fw/sdcc] / link / z80 / Makefile.in
index adc87f421e2becc5c6852ac646365736d4076c30..e51841862da8bd04ebdbcd4aa9a4166ecc8585df 100644 (file)
@@ -54,12 +54,12 @@ $(LKZ80): $(SLIBOBJS) $(LKOBJECTS)
 # Compiling and installing everything and runing test
 # ---------------------------------------------------
 install: all installdirs
-       $(INSTALL) $(LKZ80) $(bindir)/link-z80$(EXEEXT)
+       $(INSTALL) $(LKZ80) $(DESTDIR)$(bindir)/link-z80$(EXEEXT)
 
 # Deleting all the installed files
 # --------------------------------
 uninstall:
-       rm -f $(bindir)/link-z80$(EXEEXT)
+       rm -f $(DESTDIR)$(bindir)/link-z80$(EXEEXT)
 
 
 # Performing self-test
@@ -75,7 +75,7 @@ installcheck:
 # Creating installation directories
 # ---------------------------------
 installdirs:
-       $(INSTALL) -d $(bindir)
+       $(INSTALL) -d $(DESTDIR)$(bindir)
 
 
 # Creating dependencies