File: Makefile

package info (click to toggle)
nagios-plugins-contrib 48.20250420
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,792 kB
  • sloc: perl: 48,359; sh: 18,671; ansic: 11,898; python: 2,696; makefile: 1,021; php: 593; lex: 582; ruby: 149; awk: 119
file content (27 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)