1GDBUS_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 15 16SUBDIRS = $(GDBUS_APPS) \ 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 31 32REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ') 33 34.PHONY: subdirs $(SUBDIRS) 35 36subdirs: $(SUBDIRS) 37 38$(SUBDIRS): 39 $(MAKE) -C $@ 40 41$(GDBUS_APPS): libopenbmc_intf 42 43install: 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 51