Summary Files Commits Branches @commit @diff @stats
path: root / Makefile
blob: f254fcf0a9636f0f70bfb304f16b757771433ec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LIBS = $(shell pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0)
PREFIX ?= /usr/local

badwolf: badwolf.c config.h
	$(CC) $(CFLAGS) $(LIBS) -o $@ $<

install: badwolf
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp -p badwolf $(DESTDIR)$(PREFIX)/bin/badwolf

clean:
	rm badwolf

format: *.c *.h
	clang-format -style=file -assume-filename=.clang-format -i *.c *.h

.PHONY: clean install