1SHELL=/bin/sh 2MAKE = make 3SUBDIRS ?= wmediumd 4BIN = wmediumd/wmediumd 5PREFIX ?= /usr 6BINDIR ?= /bin 7 8all: 9 10 @for i in $(SUBDIRS); do \ 11 echo "make all in $$i..."; \ 12 (cd $$i; $(MAKE) all); done 13 14clean: 15 16 @for i in $(SUBDIRS); do \ 17 echo "Clearing in $$i..."; \ 18 (cd $$i; $(MAKE) clean); done 19 20install: all 21 install -Dm 0755 $(BIN) $(DESTDIR)$(PREFIX)$(BINDIR) 22