From 1749fbcdedbdaa3a490712ade94ed050510d2930 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 14 Jun 2021 20:33:14 +0400 Subject: Removed all patches from build --- Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 124efaa..66a547a 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,18 @@ PREFIX ?= /usr/local +CC ?= cc +LDFLAGS = -lX11 + +output: dwmblocks.c blocks.def.h blocks.h + ${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks +blocks.h: + cp blocks.def.h $@ + -output: dwmblocks.o - gcc dwmblocks.o -lX11 -o dwmblocks -dwmblocks.o: dwmblocks.c config.h - gcc -c -lX11 dwmblocks.c clean: - rm -rf *.o *.gch dwmblocks *.zst src pkg + rm -f *.o *.gch dwmblocks *.zst + rm -rf src pkg install: output mkdir -p $(DESTDIR)$(PREFIX)/bin - cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin - chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks + install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks -- cgit v1.2.3