xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon
Log | Files | Refs | README | LICENSE

commit 6a5ad5d8f77e28637529a77f7619808bb97255f7
parent ec5af5b21038bebc68235464d4e29accc19523c5
Author: lostd <lostd@2f30.org>
Date:   Thu,  6 Nov 2014 23:19:24 +0200

Revert to the previous style with explicit rules

Diffstat:
MMakefile | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,11 +1,14 @@ include config.mk +OBJ = xbattmon.o BIN = xbattmon all: $(BIN) -$(BIN): $(BIN).o -$(BIN).o: arg.h config.h +$(BIN): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS) + +xbattmon.o: arg.h config.h install: all mkdir -p $(DESTDIR)$(PREFIX)/bin @@ -18,7 +21,7 @@ uninstall: rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1 clean: - rm -f $(BIN) $(BIN).o + rm -f $(BIN) $(OBJ) .SUFFIXES: .def.h