1GDBUS_APPS = bmcctl \ 2 bmcctl-barreleye \ 3 boardvpd \ 4 fanctl \ 5 flashbios \ 6 hostcheckstop \ 7 hostwatchdog \ 8 hwmon \ 9 hwmon-barreleye \ 10 op-flasher \ 11 op-hostctl \ 12 op-pwrctl \ 13 pciedetect \ 14 pwrbutton \ 15 rstbutton 16 17SUBDIRS = $(GDBUS_APPS) \ 18 hacks \ 19 ledctl \ 20 libopenbmc_intf \ 21 pychassisctl \ 22 pydownloadmgr \ 23 pyfanctl \ 24 pyflashbmc \ 25 pyhwmon \ 26 pyinventorymgr \ 27 pyipmitest \ 28 pysensormgr \ 29 pystatemgr \ 30 pysystemmgr \ 31 pytools 32 33REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ') 34 35.PHONY: subdirs $(SUBDIRS) 36 37subdirs: $(SUBDIRS) 38 39$(SUBDIRS): 40 $(MAKE) -C $@ 41 42$(GDBUS_APPS): libopenbmc_intf 43 44install: subdirs 45 @for d in $(SUBDIRS); do \ 46 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \ 47 done 48clean: 49 @for d in $(REVERSE_SUBDIRS); do \ 50 $(MAKE) -C $$d $@ || exit 1; \ 51 done 52