From 33f320eaf22e6f3ec9046e54533c14e32d12c147 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 23 Mar 2011 17:55:50 -0300 Subject: [PATCH] makefiles/Makefile.kicad: replaced a few $(NAME) with patterns (%, $^, $<) --- makefiles/Makefile.kicad | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/makefiles/Makefile.kicad b/makefiles/Makefile.kicad index 3a7c24c..ce5754d 100644 --- a/makefiles/Makefile.kicad +++ b/makefiles/Makefile.kicad @@ -125,19 +125,17 @@ gerbv: $(NAME)Front.pos: pcbnew --pos $(BRD) -$(NAME)-pos.csv: $(NAME)Front.pos $(NAME).cmp - $(POS2FAB) $(NAME)Front.pos $(NAME).cmp >$@ || \ - { rm -f "$@"; exit 1; } +%-pos.csv: %Front.pos %.cmp + $(POS2FAB) $^ >$@ || { rm -f "$@"; exit 1; } ../bom/$(NAME)-bom.csv: $(MAKE) -C ../bom $(NAME)-bom.csv -$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv +%-bom.csv: ../bom/%-bom.csv mv $< $@ -$(NAME)-footprints.pdf: $(NAME).pro $(NAME).cmp $(NAME)Front.pos - $(FPDOC) -a FIDUCIAL $(NAME).pro "$@" || \ - { rm -f "$@"; exit 1; } +%-footprints.pdf: %.pro %.cmp %Front.pos + $(FPDOC) -a FIDUCIAL $< "$@" || { rm -f "$@"; exit 1; } fab-smt: $(SMT_FILES) mkdir -p fab