aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-05-24 21:56:05 -0500
committerDevin J. Pohly <djpohly@gmail.com>2021-05-24 21:56:05 -0500
commit5dfd7cf180ce2a8e9333bb385cd17484675f8467 (patch)
treec1987618369f37a067797d997930a681ab077ee8 /Makefile
parent77e75cf5549147946da2a5ebfbc63eecf8f82078 (diff)
parent06ca86009296c1b8753cba259fd797703a281bbd (diff)
Merge branch 'main' into wlroots-next
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index a0d1cc3..5ff69e9 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,17 @@ LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p)))
all: dwl
+clean:
+ rm -f dwl *.o *-protocol.h *-protocol.c
+
+install: dwl
+ install -D dwl $(PREFIX)/bin/dwl
+
+uninstall:
+ rm -f $(PREFIX)/bin/dwl
+
+.PHONY: all clean install uninstall
+
# wayland-scanner is a tool which generates C headers and rigging for Wayland
# protocols, which are specified in XML. wlroots requires you to rig these up
# to your build system yourself and provide them in the include path.
@@ -47,15 +58,6 @@ idle-protocol.o: idle-protocol.h
config.h: | config.def.h
cp config.def.h $@
-dwl.o: 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
dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o
-
-clean:
- rm -f dwl *.o *-protocol.h *-protocol.c
-
-install: dwl
- install -D dwl $(PREFIX)/bin/dwl
-
-.DEFAULT_GOAL=dwl
-.PHONY: clean