summaryrefslogtreecommitdiff
path: root/Makefile
blob: 06e5dfa4dfb57ca04fa5453d5eb70d09f49e89e0 (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
LUAVERSION?=5.4
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
DATADIR=$(PREFIX)/share
LUADIR=$(DATADIR)/lua/$(LUAVERSION)

all:
	@echo Nothing to be built

install:
	install -m644 -Dt $(DESTDIR)$(LUADIR) activity.lua
	install -m644 -Dt $(DESTDIR)$(LUADIR)/activity activity/*.lua
	install -m644 -Dt $(DESTDIR)$(LUADIR)/activity/formats activity/formats/*.lua
	install -m655 -Dt $(DESTDIR)$(BINDIR) generate.lua

uninstall:
	rm -f $(DESTDIR)$(LUADIR)/activity.lua
	rm -rf $(DESTDIR)$(LUADIR)/activity
	rm -f $(DESTIR)$(BINDIR)/generate.lua

test:
	busted

.PHONY: all install uninstall test