* device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
[fw/sdcc] / support / cpp2 / Makefile.in
index 007393cc1854a6fed963dce18014f29d067f6dfd..44d747a6f1caff05fba08ce001034d2172d58443 100644 (file)
@@ -108,12 +108,12 @@ OBSTACK=obstack.o
 # End of variables for you to override.
 
 install: all
-       mkdir -p $(bindir)
-       $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
-       $(STRIP) `echo $(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
+       mkdir -p $(DESTDIR)$(bindir)
+       $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)|sed '$(transform)'`
 
 uninstall:
-       rm -f $(bindir)/sdcpp$(EXEEXT)
+       rm -f $(DESTDIR)$(bindir)/sdcpp$(EXEEXT)
 clean:
        -rm -f $(TARGET) *.o core libcpp.a