1prefix=@prefix@ 2SYSCONFDIR=@sysconfdir@ 3BINDIR=@bindir@ 4LIBEXECDIR=@libexecdir@ 5LIBDIR=@libdir@ 6CGIDIR=@sbindir@ 7HTMLDIR=@datadir@ 8INSTALL=@INSTALL@ 9INSTALL_OPTS=@INSTALL_OPTS@ 10PERFDATADIR=@PERFDATA_DIR@ 11DATAROOTDIR=@datarootdir@ 12PKG_NAME=@PKG_NAME@ 13PKG_VERSION=@PKG_VERSION@ 14HTTPD_CONF=@HTTPD_CONF@ 15CP=@CP@ 16 17all html: 18 19clean: 20 -rm -f pnp/config.php 21 -rm -f pnp/process_perfdata.cfg-sample 22 -rm -f pnp/npcd.cfg-sample 23 -rm -f misccommands.cfg-sample 24 -rm -f nagios.cfg-sample 25 -rm -f httpd.conf 26 -rm -f pnp/pnp4nagios_release 27 -rm -f lighttpd.pnp4nagios.conf 28 -rm -f nginx.pnp4nagios.conf 29 30distclean: clean 31 -rm -f Makefile 32 33devclean: distclean 34 35install: 36 -rm -f $(DESTDIR)$(HTMLDIR)/conf/config.php 37 38 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR) 39 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/config.d 40 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands 41 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages 42 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/pnp4nagios_release $(DESTDIR)$(SYSCONFDIR) 43 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/background.pdf $(DESTDIR)$(SYSCONFDIR)/background.pdf-sample 44 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR) 45 46install-config: 47 48 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR) 49 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands 50 $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages 51 52 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config_local.php.sample 53 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/process_perfdata.cfg-sample $(DESTDIR)$(SYSCONFDIR)/process_perfdata.cfg.sample 54 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/npcd.cfg-sample $(DESTDIR)$(SYSCONFDIR)/npcd.cfg.sample 55 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/rra.cfg-sample $(DESTDIR)$(SYSCONFDIR) 56 $(INSTALL) -m 644 $(INSTALL_OPTS) misccommands.cfg-sample $(DESTDIR)$(SYSCONFDIR) 57 $(INSTALL) -m 644 $(INSTALL_OPTS) nagios.cfg-sample $(DESTDIR)$(SYSCONFDIR) 58 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_nwstat.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands 59 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_nrpe.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands 60 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_all_local_disks.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands 61 $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/pages/web_traffic.cfg-sample $(DESTDIR)$(SYSCONFDIR)/pages 62 63install-webconf: 64 65 $(INSTALL) -m 755 -d $(DESTDIR)$(HTTPD_CONF) 66 $(INSTALL) -m 644 httpd.conf $(DESTDIR)$(HTTPD_CONF)/$(PKG_NAME).conf 67 68