-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 792 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 792 Bytes
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
26
27
28
29
30
31
32
.POSIX:
prefix = /usr/local
all:
@echo "all target"
install:
@echo "Installing tgoeswall..."
install -m 555 tgoeswall $(DESTDIR)$(prefix)/bin/tgoeswall
install -m 555 tgoeswallctrl $(DESTDIR)$(prefix)/bin/tgoeswallctrl
install -D tgoeswall.conf /etc/tinytools
install tgoeswall.service /etc/systemd/user/
install tgoeswall.timer /etc/systemd/user/
install tgoeswall.1 $(DESTDIR)$(prefix)/share/man/man1
@echo "done!"
clean:
@echo "Cleaning tgoeswall"
distclean: clean
uninstall:
@echo "Uninstall tgoeswall"
systemctl --global disable tgoeswall
rm -f $(DESTDIR)$(prefix)bin/tgoeswall
rm -f $(DESTDIR)$(prefix)bin/tgoeswallctrl
rm -f /etc/systemd/user/tgoeswall.service
rm -f /etc/systemd/user/tgoeswall.timer
@echo "done!"
.PHONY: all install clean distclean uninstall