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 = hacks \ 13 ledctl \ 14 libopenbmc_intf \ 15 pychassisctl \ 16 pydownloadmgr \ 17 pyfanctl \ 18 pyflashbmc \ 19 pyhwmon \ 20 pyinventorymgr \ 21 pyipmitest \ 22 pysensormgr \ 23 pystatemgr \ 24 pysystemmgr \ 25 pytools 26 27REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) $(GDBUS_APPS) | tr ' ' '\n' | tac |tr '\n' ' ') 28 29.PHONY: subdirs $(SUBDIRS) $(GDBUS_APPS) 30 31subdirs: $(SUBDIRS) $(GDBUS_APPS) 32 33$(SUBDIRS): 34 $(MAKE) -C $@ 35 36$(GDBUS_APPS): libopenbmc_intf 37 $(MAKE) -C $@ CFLAGS="-I ../$^" LDFLAGS="-L ../$^" 38 39install: subdirs 40 @for d in $(SUBDIRS) $(GDBUS_APPS); 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