2013-02-08 23:44:34 +08:00
|
|
|
MUNIN_PLUGINS_DIR=/etc/munin/plugins
|
|
|
|
MUNIN_PLUGINS_CONFIG_DIR=/etc/munin/plugin-conf.d
|
|
|
|
PWD=$(shell pwd)
|
|
|
|
|
2013-02-12 01:23:35 +08:00
|
|
|
all: windshaft.conf
|
2013-02-08 23:44:34 +08:00
|
|
|
|
2013-02-12 01:23:35 +08:00
|
|
|
windshaft.conf: windshaft.conf.in
|
2013-02-08 23:44:34 +08:00
|
|
|
sed 's#@PWD@#$(PWD)#' < $< > $@
|
|
|
|
|
2013-02-12 01:23:35 +08:00
|
|
|
install-munin-plugin-conf: windshaft.conf
|
|
|
|
install -m 644 $< $(MUNIN_PLUGINS_CONFIG_DIR)/windshaft.conf
|
2013-02-08 23:44:34 +08:00
|
|
|
|
2013-02-12 01:23:35 +08:00
|
|
|
install-munin-plugin: windshaft
|
|
|
|
install -m 755 $< $(MUNIN_PLUGINS_DIR)/windshaft
|
|
|
|
|
|
|
|
install: install-munin-plugin install-munin-plugin-conf
|
2013-02-08 23:44:34 +08:00
|
|
|
|
|
|
|
clean:
|
2013-02-12 01:23:35 +08:00
|
|
|
rm -f windshaft.conf
|