summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f855e96..da9db8c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,16 @@
all: build/phonelock
-build/phonelock: main.c
- mkdir -p build
+build/phonelock: build main.c wayland-client.h wayland-protocol.c
gcc -Wall -o build/phonelock main.c
+build:
+ mkdir -p build
+
+wayland-client.h:
+ wayland-scanner client-header < /usr/share/wayland/wayland.xml > $@
+
+wayland-protocol.c:
+ wayland-scanner private-code < /usr/share/wayland/wayland.xml > $@
+
clean:
- rm -rf build
+ rm -rf build wayland-client.h wayland-protocol.c