summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/lua-alt-getopt/Makefile
blob: e68b350736330b48a9aca250eaed701ba012c078 (plain)
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
26
27
28
29
30
31
PREFIX?=/usr/local
LUAVER?=5.1
LUAMODDIR?=${PREFIX}/lib/lua/${LUAVER}

##################################################

VERSION=		0.7.0
PROJECTNAME=		lua-alt-getopt
BIRTHDATE=		2009-01-10

FILES=			alt_getopt.lua
FILESDIR=		${LUAMODDIR}

INST_DIR?=		${INSTALL} -d

##################################################
.PHONY: install-dirs
install-dirs:
	$(INST_DIR) ${DESTDIR}${LUAMODDIR}

.PHONY: test
test:
	@echo 'running tests...'; \
	ln -f -s ${.CURDIR}/alt_getopt.lua ${.CURDIR}/tests; \
	export OBJDIR=${.OBJDIR}; \
	if cd ${.CURDIR}/tests && ./test.sh; \
	then echo '   succeeded'; \
	else echo '   failed'; false; \
	fi

.include <bsd.prog.mk>