summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-04-08 21:12:32 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-04-08 21:12:32 -0500
commit29a2b647b27e5314fa1b9cb6158eb95cfb0bc405 (patch)
treec41b9bbe262c40b67cc4aab3afe0ab7f3b467097 /Makefile
parentdd0b8e4c371841761818b1182fcea1e8bd495676 (diff)
parentc00697e6438164e08baacc309b3dcdb727053aeb (diff)
Merge remote-tracking branch 'djpohly/main' into HEAD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 536454f..48a0aa7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
include config.mk
-CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99
+CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 -pedantic
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
@@ -15,11 +15,11 @@ clean:
rm -f dwl *.o *-protocol.h *-protocol.c
install: dwl
- install -Dm755 dwl $(PREFIX)/bin/dwl
- install -Dm644 dwl.1 $(MANDIR)/man1/dwl.1
+ install -Dm755 dwl $(DESTDIR)$(PREFIX)/bin/dwl
+ install -Dm644 dwl.1 $(DESTDIR)$(MANDIR)/man1/dwl.1
uninstall:
- rm -f $(PREFIX)/bin/dwl $(MANDIR)/man1/dwl.1
+ rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1
.PHONY: all clean install uninstall
@@ -59,6 +59,6 @@ idle-protocol.o: idle-protocol.h
config.h: | config.def.h
cp config.def.h $@
-dwl.o: config.mk config.h client.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h idle-protocol.h
+dwl.o: config.mk config.h client.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h idle-protocol.h util.h
-dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o
+dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o util.o