summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-12 15:44:24 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-12 15:44:24 -0400
commitf794ffc71705a02262ee4481c28d60b5af27d639 (patch)
tree19ef7094dcb43eae9bf039e1c8b1c8172bbbfaf9
parent03a302247bbac08ebf6ad6e42811f473fb8f765f (diff)
downloadmc-f794ffc71705a02262ee4481c28d60b5af27d639.tar.gz
Add DESTDIR support for libstd
-rw-r--r--libstd/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstd/Makefile b/libstd/Makefile
index c9ebcb3..6504fda 100644
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -90,13 +90,13 @@ clean:
rm -f lib$(MYRLIB).a
install:
- mkdir -p $(INST_ROOT)/lib/myr
- install libstd.a $(INST_ROOT)/lib/myr
- install std $(INST_ROOT)/lib/myr
+ mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
+ install libstd.a $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
+ install std $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
uninstall:
- rm -f $(INST_ROOT)/lib/myr/libstd.a
- rm -f $(INST_ROOT)/lib/myr/std
+ rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/libstd.a)
+ rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/std)
../6/6m:
cd ..; make