aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 466aa87c30354b041b8bb0f82b3d4cff53dbf2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.POSIX:

PREFIX = /usr/local
CC = cc

dwmblocks: dwmblocks.o
	$(CC) -pipe dwmblocks.o -lX11 -lbsd -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
	$(CC) -c -std=c99 -Wall -Wextra -pedantic -pipe -D_POSIX_C_SOURCE=200112L dwmblocks.c
clean:
	rm -f *.o *.gch dwmblocks
install: dwmblocks
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
	chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks

.PHONY: clean install uninstall