From ea00c2fc6d91d71b8cf3c8408af8ca8de7c037a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 27 Mar 2010 12:16:01 +0100 Subject: Makefile/config.mk: Support getting the usual values from the environment. No need to edit config.mk to set addictional CFLAGS/LDFLAGS or change the DESTDIR etc. now --- src/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index b23bde0..a5ea9b0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,13 +1,13 @@ include ../config.mk -TARGETS = $(shell echo *.c) -OBJECTS = $(TARGETS:.c=.o) +TARGETS = ${shell echo *.c} +OBJECTS = ${TARGETS:.c=.o} -feh: deps.mk $(OBJECTS) - $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) +feh: deps.mk ${OBJECTS} + ${CC} ${CFLAGS} -o $@ ${OBJECTS} ${LDFLAGS} -deps.mk: $(TARGETS) - $(CC) -MM $(TARGETS) > $@ +deps.mk: ${TARGETS} + ${CC} -MM ${TARGETS} > $@ include deps.mk -- cgit v1.2.3