KICAD_SUBDIRS = common 3d-viewer eeschema eeschema/plugins pcbnew cvpcb kicad gerbview KICAD_SUBDIRS_BIN = eeschema eeschema/plugins pcbnew cvpcb kicad gerbview # How to invoke make: MAKE = make -k -f makefile.gtk KICAD_STATIC_LINK=1 MAKE_INSTALL = make -f makefile.gtk install ERASE = rm -f *.o all: @for d in $(KICAD_SUBDIRS); do (cd $$d && $(MAKE)); done install: @for d in $(KICAD_SUBDIRS_BIN); do (cd $$d && $(MAKE_INSTALL)); done clean: @for d in $(KICAD_SUBDIRS); do (cd $$d && $(ERASE)); done