blob: 9bbd042784aeb4c74679ea1fddc4a0af176d35ec [file] [log] [blame]
Brad Bishop40a360c2016-05-28 18:41:04 -04001GDBUS_APPS = bmcctl \
Brad Bishop40a360c2016-05-28 18:41:04 -04002 flashbios \
Adriana Kobylak066d56f2016-06-16 09:23:24 -05003 hostcheckstop \
Brad Bishop40a360c2016-05-28 18:41:04 -04004 hostwatchdog \
Brad Bishop40a360c2016-05-28 18:41:04 -04005 op-flasher \
6 op-hostctl \
7 op-pwrctl \
8 pciedetect \
9 pwrbutton \
10 rstbutton
Norman Jamese2765102015-08-19 22:00:55 -050011
Brad Bishop40a360c2016-05-28 18:41:04 -040012SUBDIRS = $(GDBUS_APPS) \
Brad Bishop40a360c2016-05-28 18:41:04 -040013 hacks \
14 ledctl \
15 libopenbmc_intf \
16 pychassisctl \
17 pydownloadmgr \
18 pyfanctl \
19 pyflashbmc \
20 pyhwmon \
21 pyinventorymgr \
22 pyipmitest \
23 pysensormgr \
24 pystatemgr \
25 pysystemmgr \
26 pytools
Norman Jamese2765102015-08-19 22:00:55 -050027
Brad Bishop40a360c2016-05-28 18:41:04 -040028REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ')
Norman Jamesddb97382015-08-27 21:31:31 -050029
Brad Bishop40a360c2016-05-28 18:41:04 -040030.PHONY: subdirs $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050031
Brad Bishop40a360c2016-05-28 18:41:04 -040032subdirs: $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050033
Brad Bishop40a360c2016-05-28 18:41:04 -040034$(SUBDIRS):
35 $(MAKE) -C $@
Norman James1e25d1d2015-09-15 08:20:56 -050036
Brad Bishop40a360c2016-05-28 18:41:04 -040037$(GDBUS_APPS): libopenbmc_intf
Adriana Kobylak597d49e2015-10-29 08:33:03 -050038
Brad Bishop40a360c2016-05-28 18:41:04 -040039install: subdirs
40 @for d in $(SUBDIRS); do \
41 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
42 done
43clean:
44 @for d in $(REVERSE_SUBDIRS); do \
45 $(MAKE) -C $$d $@ || exit 1; \
46 done