dwmblocks/Makefile
ryanm0 f67807d348 Makefile: fix "output" target name
Without the right target name, make will rebuild the target (dwmblocks)
every time make is run, even if the source files haven't changed.
2020-08-04 23:16:36 -10:00

18 lines
407 B
Makefile

.POSIX:
PREFIX = /usr/local
dwmblocks: dwmblocks.o
gcc dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
gcc -c -lX11 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