From ff5c3f5ac19a8cf4d4e6fa6a3e4541f3d8d71102 Mon Sep 17 00:00:00 2001 From: nirav Date: Sun, 9 Sep 2018 19:52:58 +0530 Subject: Added manual, updated makefile --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3