sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit ea583703e41fe5dbf16e491f34c3b90be5236bcb
parent fdd04f3d12858a3908fa52bc5ad07734a315f17d
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Tue, 19 Mar 2013 18:58:22 +0100

Sensible Makefile

Diffstat:
AIncgraph | 3+++
MMakefile | 7++++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Incgraph b/Incgraph @@ -0,0 +1,3 @@ +helpers.o: helpers.c helpers.h +hotkeys.o: hotkeys.c helpers.h locales.h +sxhkd.o: sxhkd.c helpers.h diff --git a/Makefile b/Makefile @@ -11,7 +11,6 @@ BINPREFIX = $(PREFIX)/bin MANPREFIX = $(PREFIX)/share/man SRC = sxhkd.c hotkeys.c helpers.c -HDR = $(SRC:.c=.h) locales.h OBJ = $(SRC:.c=.o) all: CFLAGS += -Os @@ -21,9 +20,11 @@ all: sxhkd debug: CFLAGS += -O0 -g -DDEBUG debug: sxhkd -$(OBJ): $(SRC) $(HDR) Makefile +include Incgraph -.c.o: +$(OBJ): Makefile + +%.o: %.c $(CC) $(CFLAGS) -c -o $@ $< sxhkd: $(OBJ)