blob: 0420ae1954e063fae75fa8fba9356af148a43c90 [file] [log] [blame]
Brad Bishop40a360c2016-05-28 18:41:04 -04001GDBUS_APPS = bmcctl \
Brad Bishop40a360c2016-05-28 18:41:04 -04002 flashbios \
Brad Bishop40a360c2016-05-28 18:41:04 -04003 op-flasher \
4 op-hostctl \
Brad Bishopeaedbe92019-03-20 14:09:24 -04005 op-pwrctl
Norman Jamese2765102015-08-19 22:00:55 -05006
Yi Li2f3213f2016-08-03 11:09:55 +08007SUBDIRS = fanctl \
Brad Bishop40a360c2016-05-28 18:41:04 -04008 ledctl \
9 libopenbmc_intf \
10 pychassisctl \
11 pydownloadmgr \
Brad Bishop40a360c2016-05-28 18:41:04 -040012 pyflashbmc \
Brad Bishop40a360c2016-05-28 18:41:04 -040013 pyinventorymgr \
14 pyipmitest \
Brad Bishop40a360c2016-05-28 18:41:04 -040015 pystatemgr \
16 pysystemmgr \
17 pytools
Norman Jamese2765102015-08-19 22:00:55 -050018
Brad Bishop6f4ba052016-06-27 13:45:18 -040019REVERSE_SUBDIRS = $(shell echo $(SUBDIRS) $(GDBUS_APPS) | tr ' ' '\n' | tac |tr '\n' ' ')
Norman Jamesddb97382015-08-27 21:31:31 -050020
Brad Bishop6f4ba052016-06-27 13:45:18 -040021.PHONY: subdirs $(SUBDIRS) $(GDBUS_APPS)
Norman Jamese2765102015-08-19 22:00:55 -050022
Brad Bishop6f4ba052016-06-27 13:45:18 -040023subdirs: $(SUBDIRS) $(GDBUS_APPS)
Norman Jamese2765102015-08-19 22:00:55 -050024
Brad Bishop40a360c2016-05-28 18:41:04 -040025$(SUBDIRS):
26 $(MAKE) -C $@
Norman James1e25d1d2015-09-15 08:20:56 -050027
Brad Bishop40a360c2016-05-28 18:41:04 -040028$(GDBUS_APPS): libopenbmc_intf
Brad Bishop6f4ba052016-06-27 13:45:18 -040029 $(MAKE) -C $@ CFLAGS="-I ../$^" LDFLAGS="-L ../$^"
Adriana Kobylak597d49e2015-10-29 08:33:03 -050030
Brad Bishop40a360c2016-05-28 18:41:04 -040031install: subdirs
Brad Bishop6f4ba052016-06-27 13:45:18 -040032 @for d in $(SUBDIRS) $(GDBUS_APPS); do \
Brad Bishop40a360c2016-05-28 18:41:04 -040033 $(MAKE) -C $$d $@ DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) || exit 1; \
34 done
35clean:
36 @for d in $(REVERSE_SUBDIRS); do \
37 $(MAKE) -C $$d $@ || exit 1; \
38 done