Commit af37d78a authored by raburton's avatar raburton

added install targets for the non-binary stuff (libraries, help, etc.)

it's now possible to do a complete usable kicad install from source
parent 45e0c6ec
......@@ -38,9 +38,11 @@ static wxString s_HelpPathList[] = {
wxT("c:/kicad/help/"),
wxT("d:/kicad/help/"),
#else
wxT("/usr/share/doc/kicad/"),
wxT("/usr/local/share/doc/kicad/"),
wxT("/usr/local/kicad/share/doc/kicad/"),
wxT("/usr/local/kicad/help/"),
wxT("/usr/share/doc/kicad/help"),
wxT("/usr/share/doc/kicad/"),
#endif
wxT("end_list") // End of list symbol, do not change
};
......@@ -51,8 +53,10 @@ static wxString s_KicadDataPathList[] = {
wxT("c:/kicad/"),
wxT("d:/kicad/"),
#else
wxT("/usr/local/kicad/"),
wxT("/usr/share/kicad/"),
wxT("/usr/local/share/kicad/"),
wxT("/usr/local/kicad/share/kicad/"),
wxT("/usr/local/kicad/"),
#endif
wxT("end_list") // End of list symbol, do not change
};
......@@ -63,9 +67,10 @@ static wxString s_KicadBinaryPathList[] = {
wxT("c:/kicad/winexe/"),
wxT("d:/kicad/winexe/"),
#else
wxT("/usr/local/kicad/linux/"),
wxT("/usr/local/bin/"),
wxT("/usr/bin/"),
wxT("/usr/local/bin/"),
wxT("/usr/local/kicad/bin/"),
wxT("/usr/local/kicad/linux/"),
#endif
wxT("end_list") // End of list symbol, do not change
};
......
......@@ -18,8 +18,11 @@ all: netlist_form_pads-pcb
netlist_form_pads-pcb: netlist_form_pads-pcb.cpp makefile.gtk
gcc -D__UNIX__ -Wall netlist_form_pads-pcb.cpp -o netlist_form_pads-pcb $(LIBSTDC)
install:
cp -v netlist_form_pads-pcb $(KICAD_PLUGINS)
$(KICAD_PLUGINS):
mkdir -p $(KICAD_PLUGINS)
install: $(KICAD_PLUGINS)
cp netlist_form_pads-pcb $(KICAD_PLUGINS)
clean :
rm -f netlist_form_pads-pcb
......
# Install help files & docs
include ../libs.linux
TARGETS=de en es fr it pt ru
install: $(TARGETS)
$(KICAD_DOCS):
mkdir -p $(KICAD_DOCS)
$(TARGETS): $(KICAD_DOCS)
cp -R $@ $(KICAD_DOCS)
.PHONY: $(TARGETS)
# Install GUI translations
include ../libs.linux
TARGETS=cs de es fr hu it ko pl pt ru sl
install: $(TARGETS)
$(KICAD_INTERNAT):
mkdir -p $(KICAD_INTERNAT)
$(TARGETS): $(KICAD_INTERNAT)
cp -R $@ $(KICAD_INTERNAT)
.PHONY: $(TARGETS)
# Install component libraries
include ../libs.linux
TARGETS=*.dcm *.lib *.sym
install: $(TARGETS)
$(KICAD_LIBRARY):
mkdir -p $(KICAD_LIBRARY)
$(TARGETS): $(KICAD_LIBRARY)
cp -R $@ $(KICAD_LIBRARY)
.PHONY: $(TARGETS)
#Configuration for build kicad
KICAD_BIN = /usr/local/kicad
KICAD_PLUGINS = $(KICAD_BIN)/plugins
#
# Configuration for kicad build & install
#
# Locations for install targets. All can be overriden on the make command.
# Normally you'd only expect to override the PREFIX if you want to install to
# a non standard install dir (or a temp location for packaging).
# For packaging you can override and install anywhere, but to run from a
# non-standard location edit common/gestfich.ccp so it knows where to
# load help/data/etc. files from.
# Current supported PREFIXes are /usr, /usr/local & /usr/local/kicad
PREFIX = /usr
KICAD_BIN = $(PREFIX)/bin
KICAD_PLUGINS = $(PREFIX)/lib/kicad/plugins
KICAD_DOCS=$(PREFIX)/share/doc/kicad
KICAD_DATA=$(PREFIX)/share/kicad
KICAD_MODULES=$(KICAD_DATA)/modules
KICAD_LIBRARY=$(KICAD_DATA)/library
KICAD_INTERNAT=$(KICAD_DATA)/internat
KICAD_TEMPLATE=$(KICAD_DATA)/template
# http://www.gnu.org/software/autoconf/manual/make/Catalogue-of-Rules.html#Catalogue-of-Rules
CXX = g++
......
MAKE = make -f makefile.gtk
MAKEGTK = $(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
KICAD_SUBDIRS_REST = help internat modules template library
all:
@for dir in $(KICAD_SUBDIRS); do \
$(MAKE) -C $$dir; \
$(MAKEGTK) -C $$dir; \
done
install:
install-bin:
@for dir in $(KICAD_SUBDIRS_BIN); do \
$(MAKEGTK) -C $$dir install; \
done
install-rest:
@for dir in $(KICAD_SUBDIRS_REST); do \
$(MAKE) -C $$dir install; \
done
install: install-bin install-rest
clean:
@for dir in $(KICAD_SUBDIRS); do \
$(MAKE) -C $$dir clean; \
$(MAKEGTK) -C $$dir clean; \
done
# Install modules and 3d models
include ../libs.linux
TARGETS=*.brd *.equ *.mdc *.mod packages3d
install: $(TARGETS)
$(KICAD_MODULES):
mkdir -p $(KICAD_MODULES)
$(TARGETS): $(KICAD_MODULES)
cp -R $@ $(KICAD_MODULES)
.PHONY: $(TARGETS)
# Install template
include ../libs.linux
TARGETS=kicad.pro
install: $(TARGETS)
$(KICAD_TEMPLATE):
mkdir -p $(KICAD_TEMPLATE)
$(TARGETS): $(KICAD_TEMPLATE)
cp -R $@ $(KICAD_TEMPLATE)
.PHONY: $(TARGETS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment