.clang-format
.gitignore
LICENSE
Makefile
README.md
alacritty.light.toml
compiler-flags.txt
main.c
mimetypes.h
termbox2.h
Makefile
raw
1CC = clang
2CFLAGS = $(shell pkg-config --cflags gio-2.0 gio-unix-2.0)
3LIBS = $(shell pkg-config --libs gio-2.0 gio-unix-2.0)
4PREFIX = /usr/local
5
6xdgctl: main.c
7 $(CC) $(CFLAGS) -o xdgctl main.c $(LIBS)
8
9format:
10 clang-format -i main.c mimetypes.h
11
12clean:
13 rm -f xdgctl
14
15install:
16 install -Dm755 xdgctl $(PREFIX)/bin/xdgctl
17
18.PHONY: xdgctl format clean install