* device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
[fw/sdcc] / as / z80 / Makefile.in
index 5ae5e07d510f1a92a0fb3926179c5f1ecc658c02..50d70befbe5c11eed04a89d7f09ad236e68c2f79 100644 (file)
@@ -47,12 +47,12 @@ $(ASXZ80): $(ASOBJECTS)
 # Compiling and installing everything and runing test
 # ---------------------------------------------------
 install: all installdirs
-       $(INSTALL) $(ASXZ80) $(bindir)/as-z80
+       $(INSTALL) $(ASXZ80) $(DESTDIR)$(bindir)/as-z80
 
 # Deleting all the installed files
 # --------------------------------
 uninstall:
-       rm -f $(bindir)/as-z80
+       rm -f $(DESTDIR)$(bindir)/as-z80
 
 
 # Performing self-test
@@ -68,7 +68,7 @@ installcheck:
 # Creating installation directories
 # ---------------------------------
 installdirs:
-       $(INSTALL) -d $(bindir)
+       $(INSTALL) -d $(DESTDIR)$(bindir)
 
 
 # Creating dependencies