1GDBUS_APPS = bmcctl \ 2 flashbios \ 3 hostcheckstop \ 4 hostwatchdog \ 5 op-flasher \ 6 op-hostctl \ 7 op-pwrctl \ 8 pciedetect \ 9 pwrbutton \ 10 rstbutton 11 12SUBDIRS = $(GDBUS_APPS) \ 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 27 28REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ') 29 30.PHONY: subdirs $(SUBDIRS) 31 32subdirs: $(SUBDIRS) 33 34$(SUBDIRS): 35 $(MAKE) -C $@ 36 37$(GDBUS_APPS): libopenbmc_intf 38 39install: subdirs 40 @for d in $(SUBDIRS); do \ 41 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \ 42 done 43clean: 44 @for d in $(REVERSE_SUBDIRS); do \ 45 $(MAKE) -C $$d $@ || exit 1; \ 46 done 47