From 269b78f23fea1e7a6336f96af8f0e109bfb5cea5 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 11 Nov 2012 09:30:25 -0300 Subject: [PATCH] makefiles/Makefile.kicad: use variable TOP instead of hard-coding ../../ path This allows inclusion also in places that don't follow the /dir/ convention. Note that we still need a single directory under which all Qi project directories are located. --- makefiles/Makefile.kicad | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/makefiles/Makefile.kicad b/makefiles/Makefile.kicad index 5768aeb..a3eba5a 100644 --- a/makefiles/Makefile.kicad +++ b/makefiles/Makefile.kicad @@ -17,14 +17,17 @@ # VERSION "release" version number # +ifndef TOP +TOP = ../.. +endif PLOT_BRD = pcbnew --plot=ps --plot-fill-all-zones -CPTX = ../../eda-tools/mlztx/cptx -GMERGE = ../../eda-tools/fab/gmerge -DRL2GERBER = ../../eda-tools/fab/drl2gerber -PRETTYGERBV = ../../eda-tools/fab/prettygerbv -POS2FAB = ../../eda-tools/fab/pos2fab -FPDOC = PATH=$$PATH:../../eda-tools/fab:../../eda-tools/fpd2pdf fpdoc +CPTX = $(TOP)/eda-tools/mlztx/cptx +GMERGE = $(TOP)/eda-tools/fab/gmerge +DRL2GERBER = $(TOP)/eda-tools/fab/drl2gerber +PRETTYGERBV = $(TOP)/eda-tools/fab/prettygerbv +POS2FAB = $(TOP)/eda-tools/fab/pos2fab +FPDOC = PATH=$$PATH:$(TOP)/eda-tools/fab:$(TOP)/eda-tools/fpd2pdf fpdoc DIR = $(shell pwd | sed 's|.*/||')