Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit dd606fd

Browse files
committed
Adding alternative kicad-automation Makefile.
See https://github.com/obra/kicad-tools
1 parent 148befd commit dd606fd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.pro filter=kicad_project
22
*.sch filter=kicad_sch
3+
*.kicad_pcb diff=kicad_pcb

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
MAKEFILE_PATH := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
2+
3+
# By default, we assume the board is the first thing we find
4+
# in the same directory as the Makefile whose name ends in .pro
5+
# This matches what one would usually find with KiCad
6+
7+
BOARD = $(shell ls $(MAKEFILE_PATH)/*.pro | xargs -IXXX -n 1 basename XXX .pro | head -n 1)
8+
9+
-include /opt/kicad-tools/etc/rules.mk
10+
11+
dummy:
12+
.PHONY

0 commit comments

Comments
 (0)