diff options
author | Case Duckworth | 2020-05-26 19:31:06 -0500 |
---|---|---|
committer | Case Duckworth | 2020-05-26 19:31:06 -0500 |
commit | 4a1bcfd6d9da2a8acce81ff74f871182cd933dde (patch) | |
tree | e203e5882de0afb8089c1e531779c9a90d4fa8f5 /Makefile | |
parent | Fix dumb mistake (diff) | |
download | bollux-4a1bcfd6d9da2a8acce81ff74f871182cd933dde.tar.gz bollux-4a1bcfd6d9da2a8acce81ff74f871182cd933dde.zip |
Add Makefiles
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile index 3096726..0c98bff 100644 --- a/Makefile +++ b/Makefile | |||
@@ -4,16 +4,18 @@ | |||
4 | 4 | ||
5 | PREFIX ?= /usr | 5 | PREFIX ?= /usr |
6 | 6 | ||
7 | PRGN := bollux | ||
8 | |||
9 | .PHONY: def install uninstall | 7 | .PHONY: def install uninstall |
10 | 8 | ||
11 | def: | 9 | def: |
12 | @echo "run 'make install' to install" | 10 | @echo "run 'make install' to install" |
13 | @echo "run 'make uninstall' to uninstall" | 11 | @echo "run 'make uninstall' to uninstall" |
14 | 12 | ||
15 | install: $(PRGN) | 13 | install: |
16 | install -D $< $(DESTDIR)$(PREFIX)/bin | 14 | install -Dt $(DESTDIR)$(PREFIX)/bin/ bollux |
15 | install -Dt $(DESTDIR)$(PREFIX)/share/man/man1/ bollux.1 | ||
16 | install -Dt $(DESTDIR)$(PREFIX)/share/man/man5/ bollux.conf.5 | ||
17 | 17 | ||
18 | uninstall: | 18 | uninstall: |
19 | rm -f $(DESTDIR)$(PREFIX)/bin/$(PRGN) | 19 | rm -f $(DESTDIR)$(PREFIX)/bin/bollux |
20 | rm -f $(DESTDIR)$(PREFIX)/share/man/man1/bollux.1 | ||
21 | rm -f $(DESTDIR)$(PREFIX)/share/man/man5/bollux.conf.5 | ||