Lines 1-8
Link Here
|
1 |
--- Makefile.orig 2016-03-15 16:20:41 UTC |
1 |
--- Makefile.orig 2016-10-30 12:28:09 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -1,14 +1,14 @@ |
3 |
@@ -2,14 +2,14 @@ NAME = sxhkd |
4 |
NAME = sxhkd |
4 |
VERCMD ?= git describe 2> /dev/null |
5 |
VERSION := $(shell git describe 2> /dev/null || cat VERSION) |
5 |
VERSION := $(shell $(VERCMD) || cat VERSION) |
6 |
|
6 |
|
7 |
-CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" |
7 |
-CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" |
8 |
+CPPFLAGS += $(shell pkg-config --cflags xcb-keysyms) -DVERSION=\"$(VERSION)\" |
8 |
+CPPFLAGS += $(shell pkg-config --cflags xcb-keysyms) -DVERSION=\"$(VERSION)\" |
Lines 16-26
Link Here
|
16 |
-DOCPREFIX ?= $(PREFIX)/share/doc/$(NAME) |
16 |
-DOCPREFIX ?= $(PREFIX)/share/doc/$(NAME) |
17 |
+BINPREFIX = $(PREFIX)/bin |
17 |
+BINPREFIX = $(PREFIX)/bin |
18 |
+MANPREFIX = $(PREFIX)/man |
18 |
+MANPREFIX = $(PREFIX)/man |
19 |
+EXPREFIX = $(PREFIX)/share/examples/$(NAME) |
19 |
+EXPREFIX = $(PREFIX)/share/examples/$(NAME) |
20 |
|
20 |
|
21 |
SRC = $(wildcard *.c) |
21 |
SRC := $(wildcard *.c) |
22 |
OBJ = $(SRC:.c=.o) |
22 |
OBJ := $(SRC:.c=.o) |
23 |
@@ -27,11 +27,15 @@ $(NAME): $(OBJ) |
23 |
@@ -28,11 +28,15 @@ $(NAME): $(OBJ) |
24 |
|
24 |
|
25 |
install: |
25 |
install: |
26 |
mkdir -p "$(DESTDIR)$(BINPREFIX)" |
26 |
mkdir -p "$(DESTDIR)$(BINPREFIX)" |