aboutsummaryrefslogtreecommitdiff
path: root/libraries/LuaBitOp/Makefile.patch
blob: b6841e5c856c6715eb5f1108ba14ef1811871544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Obtained from Springdale Linux (SDL) RPM
diff -up LuaBitOp-1.0.2/Makefile.destdir LuaBitOp-1.0.2/Makefile
--- Makefile.destdir	2012-05-08 13:15:00.000000000 -0600
+++ Makefile	2014-06-26 11:20:14.380263499 -0600
@@ -39,7 +39,9 @@
	$(SOCC) $(SOLDFLAGS) -o $@ $<

 install: $(MODSO)
-	$(INSTALL) $< `$(INSTALLPATH) $(MODNAME)`
+	file=$(DESTDIR)`$(INSTALLPATH) $(MODNAME)`; \
+	mkdir -p `dirname $$file`; \
+	$(INSTALL) $< $$file

 test: $(MODSO)
	@$(LUA) bittest.lua && echo "basic test OK"