diff options
author | nirav <nirav@teisuu.com> | 2018-09-09 16:50:46 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2018-09-09 17:00:29 +0530 |
commit | 0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc (patch) | |
tree | 07ebf86a5f8b700de84911f3126c4147014147a9 /Makefile | |
parent | a400e0d1ac47ccbfffdf31f064bbd34e7bd804c5 (diff) | |
download | im-0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc.tar.gz im-0e18c9651e8a2f01a8ca3fe0fda7c7db7832d5dc.zip |
Added desktop file, updated makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |