Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 1 | GDBUS_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 James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 16 | SUBDIRS = $(GDBUS_APPS) \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 17 | 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 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 | REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ') |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 33 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 34 | .PHONY: subdirs $(SUBDIRS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 35 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 36 | subdirs: $(SUBDIRS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 37 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 38 | $(SUBDIRS): |
| 39 | $(MAKE) -C $@ |
Norman James | 1e25d1d | 2015-09-15 08:20:56 -0500 | [diff] [blame] | 40 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 41 | $(GDBUS_APPS): libopenbmc_intf |
Adriana Kobylak | 597d49e | 2015-10-29 08:33:03 -0500 | [diff] [blame] | 42 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 43 | install: subdirs |
| 44 | @for d in $(SUBDIRS); do \ |
| 45 | $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \ |
| 46 | done |
| 47 | clean: |
| 48 | @for d in $(REVERSE_SUBDIRS); do \ |
| 49 | $(MAKE) -C $$d $@ || exit 1; \ |
| 50 | done |