blob: 87acb71f833f07cf5c8c1e7371594a8344319505 [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) \
Brad Bishop40a360c2016-05-28 18:41:04 -040017 hacks \
18 ledctl \
19 libopenbmc_intf \
20 pychassisctl \
21 pydownloadmgr \
22 pyfanctl \
23 pyflashbmc \
24 pyhwmon \
25 pyinventorymgr \
26 pyipmitest \
27 pysensormgr \
28 pystatemgr \
29 pysystemmgr \
30 pytools
Norman Jamese2765102015-08-19 22:00:55 -050031
Brad Bishop40a360c2016-05-28 18:41:04 -040032REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ')
Norman Jamesddb97382015-08-27 21:31:31 -050033
Brad Bishop40a360c2016-05-28 18:41:04 -040034.PHONY: subdirs $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050035
Brad Bishop40a360c2016-05-28 18:41:04 -040036subdirs: $(SUBDIRS)
Norman Jamese2765102015-08-19 22:00:55 -050037
Brad Bishop40a360c2016-05-28 18:41:04 -040038$(SUBDIRS):
39 $(MAKE) -C $@
Norman James1e25d1d2015-09-15 08:20:56 -050040
Brad Bishop40a360c2016-05-28 18:41:04 -040041$(GDBUS_APPS): libopenbmc_intf
Adriana Kobylak597d49e2015-10-29 08:33:03 -050042
Brad Bishop40a360c2016-05-28 18:41:04 -040043install: subdirs
44 @for d in $(SUBDIRS); do \
45 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
46 done
47clean:
48 @for d in $(REVERSE_SUBDIRS); do \
49 $(MAKE) -C $$d $@ || exit 1; \
50 done