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 \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 3 | op-flasher \ |
4 | op-hostctl \ | ||||
Brad Bishop | eaedbe9 | 2019-03-20 14:09:24 -0400 | [diff] [blame] | 5 | op-pwrctl |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 6 | |
Yi Li | 2f3213f | 2016-08-03 11:09:55 +0800 | [diff] [blame] | 7 | SUBDIRS = fanctl \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 8 | ledctl \ |
9 | libopenbmc_intf \ | ||||
10 | pychassisctl \ | ||||
11 | pydownloadmgr \ | ||||
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 12 | pyflashbmc \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 13 | pyinventorymgr \ |
14 | pyipmitest \ | ||||
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 15 | pystatemgr \ |
16 | pysystemmgr \ | ||||
17 | pytools | ||||
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 6f4ba05 | 2016-06-27 13:45:18 -0400 | [diff] [blame] | 19 | REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) $(GDBUS_APPS) | tr ' ' '\n' | tac |tr '\n' ' ') |
Norman James | ddb9738 | 2015-08-27 21:31:31 -0500 | [diff] [blame] | 20 | |
Brad Bishop | 6f4ba05 | 2016-06-27 13:45:18 -0400 | [diff] [blame] | 21 | .PHONY: subdirs $(SUBDIRS) $(GDBUS_APPS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 22 | |
Brad Bishop | 6f4ba05 | 2016-06-27 13:45:18 -0400 | [diff] [blame] | 23 | subdirs: $(SUBDIRS) $(GDBUS_APPS) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 24 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 25 | $(SUBDIRS): |
26 | $(MAKE) -C $@ | ||||
Norman James | 1e25d1d | 2015-09-15 08:20:56 -0500 | [diff] [blame] | 27 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 28 | $(GDBUS_APPS): libopenbmc_intf |
Brad Bishop | 6f4ba05 | 2016-06-27 13:45:18 -0400 | [diff] [blame] | 29 | $(MAKE) -C $@ CFLAGS="-I ../$^" LDFLAGS="-L ../$^" |
Adriana Kobylak | 597d49e | 2015-10-29 08:33:03 -0500 | [diff] [blame] | 30 | |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 31 | install: subdirs |
Brad Bishop | 6f4ba05 | 2016-06-27 13:45:18 -0400 | [diff] [blame] | 32 | @for d in $(SUBDIRS) $(GDBUS_APPS); do \ |
Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame] | 33 | $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \ |
34 | done | ||||
35 | clean: | ||||
36 | @for d in $(REVERSE_SUBDIRS); do \ | ||||
37 | $(MAKE) -C $$d $@ || exit 1; \ | ||||
38 | done |