Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 1 | GDBUS_APPS = bmcctl \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 2 | flashbios \ |
Adriana Kobylak | 066d56f | 2016-06-16 09:23:24 -0500 | [diff] [blame] | 3 | hostcheckstop \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 4 | hostwatchdog \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 5 | op-flasher \ |
6 | op-hostctl \ | ||||
7 | op-pwrctl \ | ||||
8 | pciedetect \ | ||||
9 | pwrbutton \ | ||||
10 | rstbutton | ||||
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 11 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 12 | SUBDIRS = $(GDBUS_APPS) \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 13 | 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 James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 27 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 28 | REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ') |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 29 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 30 | .PHONY: subdirs $(SUBDIRS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 31 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 32 | subdirs: $(SUBDIRS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 33 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 34 | $(SUBDIRS): |
35 | $(MAKE) -C $@ | ||||
Norman James | 1e25d1d | 2015-09-15 08:20:56 -0500 | [diff] [blame] | 36 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 37 | $(GDBUS_APPS): libopenbmc_intf |
Adriana Kobylak | 597d49e | 2015-10-29 08:33:03 -0500 | [diff] [blame] | 38 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 39 | install: subdirs |
40 | @for d in $(SUBDIRS); do \ | ||||
41 | $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \ | ||||
42 | done | ||||
43 | clean: | ||||
44 | @for d in $(REVERSE_SUBDIRS); do \ | ||||
45 | $(MAKE) -C $$d $@ || exit 1; \ | ||||
46 | done |