ref: f794ffc71705a02262ee4481c28d60b5af27d639
parent: 03a302247bbac08ebf6ad6e42811f473fb8f765f
author: Ori Bernstein <[email protected]>
date: Thu Jun 12 11:44:24 EDT 2014
Add DESTDIR support for libstd
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -90,13 +90,13 @@
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