add flag to print version and exit

This commit is contained in:
Leonardo Hernández Hernández
2022-05-09 14:52:03 -05:00
parent 07d56c6d7b
commit 5d8084daa7
4 changed files with 20 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
include config.mk
CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 -pedantic
CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 -pedantic -DVERSION=\"$(VERSION)\"
WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)