Skip to content

Commit

Permalink
Merge pull request torrinfail#3 from crian/master
Browse files Browse the repository at this point in the history
Some Makefile additions by crian
  • Loading branch information
torrinfail authored Apr 16, 2020
2 parents fefab14 + 2b44212 commit 003a223
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
PREFIX ?= /usr/local

output: dwmblocks.c blocks.h
cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
clean:
rm -f *.o *.gch dwmblocks
install: output
mkdir -p /usr/local/bin
cp -f dwmblocks /usr/local/bin
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks

0 comments on commit 003a223

Please sign in to comment.