mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-11-13 07:11:12 +01:00
Makefile: do not create empty target file in case of errors
This commit is contained in:
parent
6dcd179e56
commit
e4ef4eccea
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -22,8 +22,9 @@ $(TARGET_FILE): plugins/* $(CONFIGURATION_FILE)
|
|||
s/\@\@CONF\@\@/$$ENV{"CONF"}/; \
|
||||
s/\@\@PLUGINS\@\@/$$ENV{"PLUGINS"}/; \
|
||||
s/\@\@PLSTR\@\@/$$ENV{"PLSTR"}/;' \
|
||||
munin-node.in >"$(TARGET_FILE)"
|
||||
@chmod +x "$(TARGET_FILE)"
|
||||
munin-node.in >"$(TARGET_FILE).tmp"
|
||||
@chmod +x "$(TARGET_FILE).tmp"
|
||||
@mv "$(TARGET_FILE).tmp" "$(TARGET_FILE)"
|
||||
|
||||
all: $(TARGET_FILE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue