-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 713 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
luamod_prefix=/usr/share/lua
LUA_VERSIONS=5.1 5.2 5.3 5.4 5.5
default:
@echo "run make install to install Lua modules, make test to run the tests"
clean:
rm -f *~ src/rfsm/*~ examples/*~ tests/*~ luac.out src/rfsm/luac.out
test:
@cd tests && ./run.lua
install:
@install -d -m 755 $(addprefix ${DESTDIR}/${luamod_prefix}/,${LUA_VERSIONS})
@cp -r src/rfsm/ ${DESTDIR}/${luamod_prefix}/5.1/
@for v in 5.2 5.3 5.4 5.5; do \
ln -srf ${DESTDIR}/${luamod_prefix}/5.1/rfsm ${DESTDIR}/${luamod_prefix}/$$v/ ; \
done
uninstall:
@rm -f ${DESTDIR}/${luamod_prefix}/5.1/rfsm/*
@rmdir ${DESTDIR}/${luamod_prefix}/5.1/rfsm
@rm -f ${DESTDIR}/${luamod_prefix}/*/rfsm
.PHONY: default install uninstall clean test