forked from avsej/http_error_catcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 704 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (17 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS=-pedantic -Wall -Wextra
LDFLAGS=-lmicrohttpd -lriemann_c_client -pthread
PREFIX=/usr/local
.PHONY: clean install uninstall
http-error-catcher: http-error-catcher.o
$(CC) $(CPPFLAGS) $< $(LDFLAGS) -o $@
clean:
rm -f http-error-catcher
rm -f http-error-catcher.o
install: http_error_catcher
install -m 755 http-error-catcher $(PREFIX)/bin/http-error-catcher
install -m 755 http-error-catcher.env /etc/default/http-error-catcher
install -m 755 http-error-catcher.service /usr/lib/systemd/system/http-error-catcher.service
uninstall: http-error-catcher
rm -f $(PREFIX)/bin/http-error-catcher
rm -f /etc/default/http-error-catcher
rm -f /usr/lib/systemd/system/http-error-catcher.service