aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d99e7df..12c939f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,9 @@ CFLAGS+=-Wall -Wextra -Wno-unused-parameter
CFLAGS+=$(shell pkg-config --cflags gtk+-3.0)
LDFLAGS+=$(shell pkg-config --libs gtk+-3.0)
PREFIX?=/usr
-BINDIR=$(PREFIX)/bin
-APPDIR=$(PREFIX)/share/applications
+BINDIR?=$(PREFIX)/bin
+APPDIR?=$(PREFIX)/share/applications
+MANDIR?=$(PREFIX)/share/man/man1
SRCDIR=src
OUTDIR=build
@@ -33,9 +34,11 @@ clean:
install: qwe qwe.desktop
$(INSTALL) -m0755 qwe $(BINDIR)
$(INSTALL) -m0644 qwe.desktop $(APPDIR)/qwe.desktop
+ $(INSTALL) -m0444 doc/qwe.1 $(MANDIR)/qwe.1
uninstall:
- rm -rf $(BINDIR)/qwe
- rm -rf $(APPDIR)/qwe.desktop
+ rm -f $(BINDIR)/qwe
+ rm -f $(APPDIR)/qwe.desktop
+ rm -f $(MANDIR)/qwe.1
.PHONY: all clean install uninstall