diff options
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 | ||