summaryrefslogtreecommitdiff
path: root/Makefile
blob: eff722023fba97c1272b1547b1f2541b3d6e7433 (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
LUA_VERSION=5.4
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
DATADIR=$(PREFIX)/share
MANDIR=$(DATADIR)/man
MAN1DIR=$(MANDIR)/man1
LUA_LMOD=$(DATADIR)/lua/$(LUA_VERSION)

all: test

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

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

test:
	busted

.PHONY: all install uninstall test