blob: 67d9102dc8690e2a87d475a9dd6270312460c371 [file] [log] [blame]
GDBUS_APPS = bmcctl \
bmcctl-barreleye \
boardvpd \
fanctl \
flashbios \
hostwatchdog \
hwmon \
hwmon-barreleye \
op-flasher \
op-hostctl \
op-pwrctl \
pciedetect \
pwrbutton \
rstbutton
SUBDIRS = $(GDBUS_APPS) \
configs \
hacks \
ledctl \
libopenbmc_intf \
pychassisctl \
pydownloadmgr \
pyfanctl \
pyflashbmc \
pyhwmon \
pyinventorymgr \
pyipmitest \
pysensormgr \
pystatemgr \
pysystemmgr \
pytools
REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) | tr ' ' '\n' | tac |tr '\n' ' ')
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
$(GDBUS_APPS): libopenbmc_intf
install: subdirs
@for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
done
clean:
@for d in $(REVERSE_SUBDIRS); do \
$(MAKE) -C $$d $@ || exit 1; \
done