spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 6ada71f97606b0f7fad3dabf842bd575eb2fe9a0
parent 48aaa560ef35c2fba5a86f11a8d51c90d5444eac
Author: lostd <lostd@2f30.org>
Date:   Thu Oct 13 17:27:53 +0200

Isolate optional dependencies to ease custom builds

Diffstat:
Makefile | 18++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,10 +1,7 @@ VERSION = 0.2 PREFIX = /usr/local -DISTFILES = spoon.c batt.c wifi.c cpu.c temp.c mix.c date.c load.c\ - mpd.c xkblayout.c strlcpy.c strlcat.c util.h config.def.h\ - Makefile LICENSE configure -OBJ = spoon.o batt.o wifi.o cpu.o temp.o mix.o date.o load.o mpd.o xkblayout.o\ - strlcpy.o strlcat.o +SRC = spoon.c batt.c wifi.c cpu.c temp.c mix.c date.c load.c\ + strlcpy.c strlcat.c BIN = spoon include config.mk @@ -16,7 +13,16 @@ CPPFLAGS_Linux = -DPATH_BAT_CAP=\"/sys/class/power_supply/BAT0/capacity\"\ -DPATH_TEMP=\"/sys/class/hwmon/hwmon0/temp1_input\" CPPFLAGS = $(CPPFLAGS_$(UNAME)) LDFLAGS = $(LDFLAGS_$(UNAME)) -LDLIBS = -lxkbfile -lX11 -lmpdclient +LDLIBS = -lX11 + +SRC += xkblayout.c +LDLIBS += -lxkbfile + +SRC += mpd.c +LDLIBS += -lmpdclient + +DISTFILES = $(SRC) util.h config.def.h Makefile LICENSE configure +OBJ = $(SRC:.c=.o) all: $(BIN)