Debian Codegraph @

texmf-dist/doc/support/lua-alt-getopt/Makefile

raw
1 PREFIX?=/usr/local
2 LUAVER?=5.1
3 LUAMODDIR?=${PREFIX}/lib/lua/${LUAVER}
4
5 ##################################################
6
7 VERSION= 0.7.0
8 PROJECTNAME= lua-alt-getopt
9 BIRTHDATE= 2009-01-10
10
11 FILES= alt_getopt.lua
12 FILESDIR= ${LUAMODDIR}
13
14 INST_DIR?= ${INSTALL} -d
15
16 ##################################################
17 .PHONY: install-dirs
18 install-dirs:
19 $(INST_DIR) ${DESTDIR}${LUAMODDIR}
20
21 .PHONY: test
22 test:
23 @echo 'running tests...'; \
24 ln -f -s ${.CURDIR}/alt_getopt.lua ${.CURDIR}/tests; \
25 export OBJDIR=${.OBJDIR}; \
26 if cd ${.CURDIR}/tests && ./test.sh; \
27 then echo ' succeeded'; \
28 else echo ' failed'; false; \
29 fi
30
31 .include <bsd.prog.mk>