# You can do "make SUB=blah" to make only a few, or edit here, or both
# You can also run make directly in the subdirs you want.


include ../../Rules.mak
#SUB =   routed ripquery
SUB =   routed
STRIP = $(CROSS)strip

%.build:
	(cd $(patsubst %.build, %, $@) && $(MAKE))

%.install:
	#(cd $(patsubst %.install, %, $@) && $(MAKE) install)
	$(STRIP) ./routed/routed
	cp ./routed/routed ../../target/usr/sbin/

%.clean:
	(cd $(patsubst %.clean, %, $@) && $(MAKE) clean)

all:     $(patsubst %, %.build, $(SUB))
install: $(patsubst %, %.install, $(SUB))
clean:   $(patsubst %, %.clean, $(SUB))

distclean: clean
	rm -f MCONFIG
