diff --git a/sinks/Makefile b/sinks/Makefile index 4274c4d..bd40f10 100644 --- a/sinks/Makefile +++ b/sinks/Makefile @@ -2,9 +2,10 @@ all: libganglia.so libganglia.so: - @find /usr -readable -name "libganglia.so*" -print0 | \ + @find /usr ! -readable -prune -o -type d ! -executable -prune -o -name "$@*" -print0 | \ xargs --null --no-run-if-empty --replace \ - ln --symbolic --verbose --force '{}' libganglia.so + ln --symbolic --verbose --force '{}' "$@" + @if [[ ! -e "$@" ]]; then touch "$@"; fi clean: