summaryrefslogtreecommitdiff
path: root/Makefile
blob: 236b04d0880da39c174def388780ddbcb506d1be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LUA_VERSION=5.4
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
DATADIR=$(PREFIX)/share
LUA_LMOD=$(DATADIR)/lua/$(LUA_VERSION)

all:
	@echo Nothing to be built

install:
	install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/activity activity/*.lua
	install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/activity/formats activity/formats/*.lua
	install -m755 -DT generate.lua $(DESTDIR)$(BINDIR)/activity

uninstall:
	rm -rf $(DESTDIR)$(LUA_LMOD)/activity
	rm -f $(DESTIR)$(BINDIR)/activity

test:
	busted

.PHONY: all install uninstall test