From eb52f501e4c7a64418a0d9117cfe25c4ce9b3d9d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 25 Jan 2026 12:04:07 +0100 Subject: Engage! --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4030ff2 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC = clang +CFLAGS = $(shell pkg-config --cflags gio-2.0 gio-unix-2.0) +LIBS = $(shell pkg-config --libs gio-2.0 gio-unix-2.0) +PREFIX = /usr/local + +xdgctl: main.c + $(CC) $(CFLAGS) -o xdgctl main.c $(LIBS) + +format: + clang-format -i main.c mimetypes.h + +clean: + rm -f xdgctl + +install: + install -Dm755 xdgctl $(PREFIX)/bin/xdgctl + +.PHONY: xdgctl format clean install -- cgit v1.2.3