1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-05 04:55:19 +02:00

makefiles/Makefile.kicad: use variable TOP instead of hard-coding ../../ path

This allows inclusion also in places that don't follow the <project>/dir/
convention. Note that we still need a single directory under which all Qi
project directories are located.
This commit is contained in:
Werner Almesberger 2012-11-11 09:30:25 -03:00
parent 155886ddcb
commit 269b78f23f

View File

@ -17,14 +17,17 @@
# VERSION "release" version number # VERSION "release" version number
# #
ifndef TOP
TOP = ../..
endif
PLOT_BRD = pcbnew --plot=ps --plot-fill-all-zones PLOT_BRD = pcbnew --plot=ps --plot-fill-all-zones
CPTX = ../../eda-tools/mlztx/cptx CPTX = $(TOP)/eda-tools/mlztx/cptx
GMERGE = ../../eda-tools/fab/gmerge GMERGE = $(TOP)/eda-tools/fab/gmerge
DRL2GERBER = ../../eda-tools/fab/drl2gerber DRL2GERBER = $(TOP)/eda-tools/fab/drl2gerber
PRETTYGERBV = ../../eda-tools/fab/prettygerbv PRETTYGERBV = $(TOP)/eda-tools/fab/prettygerbv
POS2FAB = ../../eda-tools/fab/pos2fab POS2FAB = $(TOP)/eda-tools/fab/pos2fab
FPDOC = PATH=$$PATH:../../eda-tools/fab:../../eda-tools/fpd2pdf fpdoc FPDOC = PATH=$$PATH:$(TOP)/eda-tools/fab:$(TOP)/eda-tools/fpd2pdf fpdoc
DIR = $(shell pwd | sed 's|.*/||') DIR = $(shell pwd | sed 's|.*/||')