git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/Makefile
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2019-04-17 19:07:19 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2019-04-17 19:07:19 +0200
commit1e2387474a449452b78520b9ad96a8b4b5e99722 (patch)
tree836889471eec7d2aac177405068e2a8f1e2b1978 /nagios-plugins-contrib-24.20190301~bpo9+1/Makefile
downloadnagios-plugins-contrib-1e2387474a449452b78520b9ad96a8b4b5e99722.tar.bz2
initial commit of source fetch
Diffstat (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/Makefile')
-rw-r--r--nagios-plugins-contrib-24.20190301~bpo9+1/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/Makefile b/nagios-plugins-contrib-24.20190301~bpo9+1/Makefile
new file mode 100644
index 0000000..55e8807
--- /dev/null
+++ b/nagios-plugins-contrib-24.20190301~bpo9+1/Makefile
@@ -0,0 +1,27 @@
+PLUGINS := $(strip $(shell find . -mindepth 2 -maxdepth 2 -name Makefile -printf '%h '))
+
+ifeq ($(wildcard /etc/debian_version),/etc/debian_version)
+HOST_ARCH := $(strip $(shell dpkg-architecture -q DEB_HOST_ARCH))
+else
+ifeq ($(wildcard /usr/bin/rpm),/usr/bin/rpm)
+HOST_ARCH := $(strip $(shell rpm --eval '%{_arch}'))
+endif
+endif
+
+ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),hurd-i386))
+ PLUGINS := $(filter-out check_memcached check_varnish,$(PLUGINS))
+endif
+ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),arm64))
+ PLUGINS := $(filter-out check_memcached,$(PLUGINS))
+endif
+ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH),m68k))
+ PLUGINS := $(filter-out check_varnish,$(PLUGINS))
+endif
+
+
+default: all
+
+$(PLUGINS)::
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+all clean install : $(PLUGINS)