Created
March 18, 2015 06:42
-
-
Save kraftb/9765e93862562c2d6c4a to your computer and use it in GitHub Desktop.
Makefile for gEDA projects (gschem, pcb)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCHEMATICS=tom-alexandria-1.sch tom-alexandria-2.sch tom-alexandria-3.sch tom-alexandria-4.sch | |
TARGET=tom-alexandria | |
all: $(TARGET).drc | |
gsch2pcb -o $(TARGET) $(SCHEMATICS) | |
edit-schematic: | |
gschem $(SCHEMATICS) | |
clean: | |
rm -f *.drc | |
rm -f *.backup | |
rm -f *.sch~ | |
rm -f *.pcb- | |
rm -f *.cmd | |
rm -f *.net | |
rm -f *.new.pcb | |
rm -f *.png | |
rm -f *.ps | |
rm -f *.pcb.bak* | |
$(TARGET).drc: $(SCHEMATICS) | |
gnetlist -g drc2 $(SCHEMATICS) -o $(TARGET).drc || exit | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment