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.
This commit is contained in:
parent
d3eed01126
commit
f67807d348
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
output: dwmblocks.o
|
dwmblocks: dwmblocks.o
|
||||||
gcc dwmblocks.o -lX11 -o dwmblocks
|
gcc dwmblocks.o -lX11 -o dwmblocks
|
||||||
dwmblocks.o: dwmblocks.c config.h
|
dwmblocks.o: dwmblocks.c config.h
|
||||||
gcc -c -lX11 dwmblocks.c
|
gcc -c -lX11 dwmblocks.c
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.gch dwmblocks
|
rm -f *.o *.gch dwmblocks
|
||||||
install: output
|
install: dwmblocks
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
|
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
|
||||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
|
||||||
|
|
Loading…
Reference in a new issue