summaryrefslogtreecommitdiff
path: root/qa/pmdas/GNUmakefile.install
blob: bd16ec273fd000a4aa2849866c9506dcf7b476da (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!gmake
#
# Copyright (c) 2012 Red Hat.
# Copyright (c) 2010 Aconex.  All Rights Reserved.
#

ifdef PCP_CONF
include $(PCP_CONF)
else
include $(PCP_DIR)/etc/pcp.conf
endif
PATH	= $(shell . $(PCP_DIR)/etc/pcp.env; echo $$PATH)
include $(PCP_INC_DIR)/builddefs

# special variant of SUBDIRS_MAKERULE for running QA in the tree
#
SUBDIRS_MAKERULE = \
	@for d in `echo $^ `; do \
	    if test -d "$$d" ; then \
		$(ECHO) === $$d ===; \
		if test -f "$$d/GNUmakefile.install"; then \
		    $(MAKE) -C $$d -f GNUmakefile.install $@ || exit $$?; \
		else \
		    $(MAKE) -C $$d $@ || exit $$?; \
		fi; \
	    fi; \
	done

SUBDIRS = broken bigun dynamic slow slow_python

default default_pcp: $(SUBDIRS)
	$(SUBDIRS_MAKERULE)

setup: $(SUBDIRS)
	$(SUBDIRS_MAKERULE)

install install_pcp: $(SUBDIRS)
	$(SUBDIRS_MAKERULE)

include $(BUILDRULES)