]>
Commit | Line | Data |
---|---|---|
79ac753b SW |
1 | prefix = /usr/local |
2 | exec_prefix = $(prefix) | |
3 | bindir = $(exec_prefix)/bin | |
4 | INSTALL = install -D | |
5 | INSTALL_PROGRAM = $(INSTALL) | |
6 | ||
7 | batteryviewer: batteryviewer.c | |
8 | gcc $(shell pkg-config --cflags gtk4) -o $@ $< $(shell pkg-config --libs gtk4) | |
9 | ||
10 | all: batteryviewer | |
11 | ||
12 | install: | |
13 | $(INSTALL_PROGRAM) batteryviewer $(bindir)/batteryviewer | |
14 | ||
15 | clean: | |
16 | rm batteryviewer | |
17 | ||
18 | .PHONY: all clean install |