summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-08-25 13:36:30 +0200
committerNiko Tyni <ntyni@iki.fi>2005-08-25 13:36:30 +0200
commitb845e8f36b17287858130cac979914b3851189d3 (patch)
treee73da4e85f4af806f5c6d3b35dacd8f2bb2c591b /Makefile
parent097c0c8590821246ac6630e7f2d72c0db62ea69d (diff)
downloadsmokeping-b845e8f36b17287858130cac979914b3851189d3.tar.gz
smokeping-b845e8f36b17287858130cac979914b3851189d3.tar.xz
* 2.0/Makefile:
+ made the 'rename-man' target idempotent
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ce8099a..6998998 100644
--- a/Makefile
+++ b/Makefile
@@ -100,7 +100,9 @@ txt: $(TXT)
rename-man: $(MAN)
for j in probes matchers; do \
for i in doc/Smokeping/$$j/*.3; do \
- mv $$i `echo $$i | sed s,$$j/,$$j/Smokeping::$$j::,`; \
+ if ! echo $$i | grep -q Smokeping::$$j; then \
+ mv $$i `echo $$i | sed s,$$j/,$$j/Smokeping::$$j::,`; \
+ fi; \
done; \
done
mv doc/Config/Grammar.3 doc/Config/Config::Grammar.3