define wiring in separate file
[challenge-bot] / pcb / Makefile
CommitLineData
468dbff9
WG
1# zip together files starting with robus as the root. This
2# allows the search path inside of KiCAD to find all the
3# appropriate .mod and .lib files:
4
5# The project base:
6BASE := busduino
7
8# Root directory:
9ROOT_DIR := ../../..
10
11# The library driectory from $(ROOT_DIR):
12LIBRARY_DIR := robus
13LIBRARY_MODULE_FILES := \
14 $(LIBRARY_DIR)/extra-nominal.mod \
15 $(LIBRARY_DIR)/IPC7351-Nominal.mod \
16 $(LIBRARY_DIR)/robus.mod \
17 $(LIBRARY_DIR)/ipc7351_extra.mod \
18 $(LIBRARY_DIR)/robus.lib
19
20# The base directory from $(ROOT_DIR):
21BASE_DIR := $(LIBRARY_DIR)/$(BASE)/rev_b
22BASE_PREFIX := $(BASE_DIR)/$(BASE)
23BASE_FILES := \
24 $(BASE_PREFIX).brd \
25 $(BASE_PREFIX)-cache.lib \
26 $(BASE_PREFIX).cmp \
27 $(BASE_PREFIX).net \
28 $(BASE_PREFIX).pdf \
29 $(BASE_PREFIX).pro \
30 $(BASE_PREFIX).sch \
31 $(BASE_PREFIX)$$savepcb.brd \
32 $(BASE_DIR)/notes.txt
33
34ARCHIVE_FILES := \
35 ${LIBRARY_MODULE_FILES} \
36 ${BASE_FILES}
37
38ZIP_FILES := \
39 $(BASE_PREFIX).zip
40
41ARDUINO_DIR := $(ROOT_DIR)/arduino/arduino-1.0.1
468dbff9
WG
42
43all: ${ZIP_FILES}
44
45$(BASE_PREFIX).zip:
46 cd $(ROOT_DIR) ; zip $@ ${ARCHIVE_FILES}
47
b9e460c0 48seeedstudio:
49 cp mbino-Edge_Cuts.gbr mbino-Edge_Cuts.gml
50 cp mbino.drl mbino.txt
51 zip mbino.zip -r9 mbino-B_Cu.gbl mbino-B_SilkS.gbo mbino-F_Cu.gtl \
52 mbino-F_Paste.gtp mbino-B_Mask.gbs mbino-Edge_Cuts.gml \
53 mbino-F_Mask.gts mbino-F_SilkS.gto mbino.txt