From 0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc Mon Sep 17 00:00:00 2001 From: nirav Date: Sun, 9 Sep 2018 16:50:46 +0530 Subject: Added desktop file, updated makefile --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3230804..d99e7df 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ CC?=cc INSTALL?=install -CFLAGS?=-o2 -pipe -Wall -std=c11 $(shell pkg-config --cflags gtk+-3.0) -LDFLAGS?=$(shell pkg-config --libs gtk+-3.0) -PREFIX?=/usr/local -BINDIR?=$(PREFIX)/bin +CFLAGS?=-o2 -pipe +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 SRCDIR=src OUTDIR=build @@ -27,10 +30,12 @@ $(OUTDIR)/%.o: $(SRCDIR)/%.c clean: rm -rf $(OUTDIR) qwe -install: qwe +install: qwe qwe.desktop $(INSTALL) -m0755 qwe $(BINDIR) + $(INSTALL) -m0644 qwe.desktop $(APPDIR)/qwe.desktop uninstall: rm -rf $(BINDIR)/qwe + rm -rf $(APPDIR)/qwe.desktop .PHONY: all clean install uninstall -- cgit v1.2.3