From: Michael Stapelberg Date: Sun, 9 Sep 2012 13:39:49 +0000 (+0200) Subject: use pwd -P instead of readlink -f (Thanks Marcus Crestani) X-Git-Tag: 4.3~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4afd20d213ab7d08c6682801af736f58b8d1843;p=i3%2Fi3 use pwd -P instead of readlink -f (Thanks Marcus Crestani) readlink -f does not work on Mac OS X --- diff --git a/src/i3.mk b/src/i3.mk index a0985120..a93cc4c4 100644 --- a/src/i3.mk +++ b/src/i3.mk @@ -21,13 +21,13 @@ endif i3_OBJECTS := $(i3_SOURCES_GENERATED:.c=.o) $(i3_SOURCES:.c=.o) -# The basename/readlink calls are for canonicalizing the path: Instead +# The basename/pwd calls are for canonicalizing the path: Instead # of src/main.c, we will see something like ../i3-4.2/src/main.c in # debugger backtraces, making it clearer which code belongs to i3 and # which code doesn’t. # We only do this for src/ since all the other subdirectories contain i3 in # their name already. -canonical_path := ../$(shell basename $(shell readlink -f .)) +canonical_path := ../$(shell basename $(shell pwd -P)) include/all.h.pch: $(i3_HEADERS) echo "[i3] PCH all.h"