From: Michael Stapelberg Date: Wed, 2 Jun 2010 20:34:31 +0000 (+0200) Subject: bugfix: only print the first match when looking for the loglevel X-Git-Tag: tree-pr1~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bdb106553731438a2e4cb20edc420037f26612dd;p=i3%2Fi3 bugfix: only print the first match when looking for the loglevel fixes problems with con.c, container.c, config.c --- diff --git a/Makefile b/Makefile index b2b1b036..0b56d69b 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ endif # Depend on the specific file (.c for each .o) and on all headers src/%.o: src/%.c ${HEADERS} echo "CC $<" - $(CC) $(CFLAGS) -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $< + $(CC) $(CFLAGS) -DLOGLEVEL="((uint64_t)1 << $(shell awk '/$(shell basename $< .c)/ { print NR; exit 0; }' loglevels.tmp))" -c -o $@ $< all: src/cfgparse.y.o src/cfgparse.yy.o src/cmdparse.y.o src/cmdparse.yy.o ${FILES} echo "LINK i3"