make the top level makefile a little neater

This commit is contained in:
raburton 2007-06-13 13:01:44 +00:00
parent d3c6241a32
commit 67a04a105b
1 changed files with 10 additions and 7 deletions

View File

@ -1,15 +1,18 @@
MAKE = make -f makefile.gtk
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
MAKE_INSTALL = make -f makefile.gtk install
MAKE_CLEAN = make -f makefile.gtk clean
all:
@for d in $(KICAD_SUBDIRS); do (cd $$d && $(MAKE)); done
@for dir in $(KICAD_SUBDIRS); do \
$(MAKE) -C $$dir; \
done
install:
@for d in $(KICAD_SUBDIRS_BIN); do (cd $$d && $(MAKE_INSTALL)); done
@for dir in $(KICAD_SUBDIRS_BIN); do \
$(MAKE) -C $$dir install; \
done
clean:
@for d in $(KICAD_SUBDIRS); do (cd $$d && $(MAKE_CLEAN)); done
@for dir in $(KICAD_SUBDIRS); do \
$(MAKE) -C $$dir clean; \
done