blob: 67d9102dc8690e2a87d475a9dd6270312460c371 [file] [log] [blame]
Brad Bishop40a360c2016-05-28 18:41:04 -04001GDBUS_APPS = bmcctl \
2 bmcctl-barreleye \
3 boardvpd \
4 fanctl \
5 flashbios \
6 hostwatchdog \
7 hwmon \
8 hwmon-barreleye \
9 op-flasher \
10 op-hostctl \
11 op-pwrctl \
12 pciedetect \
13 pwrbutton \
14 rstbutton
Norman Jamese2765102015-08-19 22:00:55 -050015
Brad Bishop40a360c2016-05-28 18:41:04 -040016SUBDIRS = $(GDBUS_APPS) \
17 configs \
18 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