summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 3b7fe6866ed0942b07d8c4ef68ac781390a692ea (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
CFLAGS+=-Wall -Wextra -Wpedantic
CFLAGS+=-I/usr/include/lua5.3
LDLIBS+=-llua5.3
PREFIX?=/usr/local

plop: plop.o http.o http.h
http.o: http.h

clean:
	rm -f plop *.o

install: plop
	mkdir -p $(PREFIX)/bin
	mkdir -p $(PREFIX)/share/man/man1
	cp -f plop $(PREFIX)/bin
	cp -f plop.1 $(PREFIX)/share/man/man1
	chmod 755 $(PREFIX)/bin/plop
	chmod 644 $(PREFIX)/share/man/man1/plop.1

uninstall:
	rm -f $(PREFIX)/bin/plop
	rm -f $(PREFIX)/share/man/man1/plop.1

.PHONY: clean install uninstall