blob: 539c7d8120c67df89aeda1b77fed223c44329bdd [file] [log] [blame]
Brad Bishop40a360c2016-05-28 18:41:04 -04001GDBUS_APPS = bmcctl \
2 bmcctl-barreleye \
3 boardvpd \
4 fanctl \
5 flashbios \
Adriana Kobylak066d56f2016-06-16 09:23:24 -05006 hostcheckstop \
Brad Bishop40a360c2016-05-28 18:41:04 -04007 hostwatchdog \
8 hwmon \
9 hwmon-barreleye \
10 op-flasher \
11 op-hostctl \
12 op-pwrctl \
13 pciedetect \
14 pwrbutton \
15 rstbutton
Norman Jamese2765102015-08-19 22:00:55 -050016
Brad Bishop40a360c2016-05-28 18:41:04 -040017SUBDIRS = $(GDBUS_APPS) \
Brad Bishop40a360c2016-05-28 18:41:04 -040018 hacks \
19 ledctl \
20 libopenbmc_intf \
21 pychassisctl \
22 pydownloadmgr \
23 pyfanctl \
24 pyflashbmc \
25 pyhwmon \
26 pyinventorymgr \
27 pyipmitest \
28 pysensormgr \
29 pystatemgr \
30 pysystemmgr \
31 pytools
Norman Jamese2765102015-08-19 22:00:55 -050032
Brad Bishop40a360c2016-05-28 18:41:04 -040033REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ')
Norman Jamesddb97382015-08-27 21:31:31 -050034
Brad Bishop40a360c2016-05-28 18:41:04 -040035.PHONY: subdirs $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050036
Brad Bishop40a360c2016-05-28 18:41:04 -040037subdirs: $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050038
Brad Bishop40a360c2016-05-28 18:41:04 -040039$(SUBDIRS):
40 $(MAKE) -C $@
Norman James1e25d1d2015-09-15 08:20:56 -050041
Brad Bishop40a360c2016-05-28 18:41:04 -040042$(GDBUS_APPS): libopenbmc_intf
Adriana Kobylak597d49e2015-10-29 08:33:03 -050043
Brad Bishop40a360c2016-05-28 18:41:04 -040044install: subdirs
45 @for d in $(SUBDIRS); do \
46 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
47 done
48clean:
49 @for d in $(REVERSE_SUBDIRS); do \
50 $(MAKE) -C $$d $@ || exit 1; \
51 done