aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-04-15 13:06:06 -0500
committerDevin J. Pohly <djpohly@gmail.com>2021-04-15 13:06:06 -0500
commit3f86336badecd7ced48db2a71ddcfb141fa5f39d (patch)
tree9d30b0dad5af09ad3ef6048e6e9dae8f18078d80 /Makefile
parentb372d4b55e256b96fe926c512499ed90c460d66f (diff)
parent3727f4a7b3d230226f0082581444344d563e0f9c (diff)
Merge branch 'main' into pipe-status
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index a0d1cc3..fe6ff04 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,14 @@ 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
+
+.PHONY: all clean install
+
# 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 +55,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