| @@ -1,23 +1,23 @@ | | | @@ -1,23 +1,23 @@ |
1 | $NetBSD: patch-Makefile,v 1.1 2014/05/03 13:02:38 alnsn Exp $ | | 1 | $NetBSD: patch-Makefile,v 1.2 2014/12/10 23:22:36 joerg Exp $ |
2 | | | 2 | |
3 | --- Makefile.orig 2012-05-08 19:15:00.000000000 +0000 | | 3 | --- Makefile.orig 2012-05-08 19:15:00.000000000 +0000 |
4 | +++ Makefile | | 4 | +++ Makefile |
5 | @@ -3,7 +3,7 @@ | | 5 | @@ -3,7 +3,7 @@ |
6 | # To compile with MinGW please run: mingw32-make -f Makefile.mingw | | 6 | # To compile with MinGW please run: mingw32-make -f Makefile.mingw |
7 | | | 7 | |
8 | # Include path where lua.h, luaconf.h and lauxlib.h reside: | | 8 | # Include path where lua.h, luaconf.h and lauxlib.h reside: |
9 | -INCLUDES= -I/usr/local/include | | 9 | -INCLUDES= -I/usr/local/include |
10 | +INCLUDES= -I $(LUA_INC) | | 10 | +INCLUDES= |
11 | | | 11 | |
12 | DEFINES= | | 12 | DEFINES= |
13 | # Use this for the old ARM ABI with swapped FPA doubles. | | 13 | # Use this for the old ARM ABI with swapped FPA doubles. |
14 | @@ -39,7 +39,8 @@ $(MODSO): $(MODNAME).o | | 14 | @@ -39,7 +39,8 @@ $(MODSO): $(MODNAME).o |
15 | $(SOCC) $(SOLDFLAGS) -o $@ $< | | 15 | $(SOCC) $(SOLDFLAGS) -o $@ $< |
16 | | | 16 | |
17 | install: $(MODSO) | | 17 | install: $(MODSO) |
18 | - $(INSTALL) $< `$(INSTALLPATH) $(MODNAME)` | | 18 | - $(INSTALL) $< `$(INSTALLPATH) $(MODNAME)` |
19 | + ${BSD_INSTALL_LIB} ${MODSO} ${DESTDIR}${PREFIX}/${LUA_CDIR} | | 19 | + ${BSD_INSTALL_LIB} ${MODSO} ${DESTDIR}${PREFIX}/${LUA_CDIR} |
20 | + cp -r doc/* ${DESTDIR}${PREFIX}/${LUA_DOCDIR} | | 20 | + cp -r doc/* ${DESTDIR}${PREFIX}/${LUA_DOCDIR} |
21 | | | 21 | |
22 | test: $(MODSO) | | 22 | test: $(MODSO) |
23 | @$(LUA) bittest.lua && echo "basic test OK" | | 23 | @$(LUA) bittest.lua && echo "basic test OK" |