Skip to content

Instantly share code, notes, and snippets.

@kraftb
Created March 18, 2015 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kraftb/9765e93862562c2d6c4a to your computer and use it in GitHub Desktop.
Save kraftb/9765e93862562c2d6c4a to your computer and use it in GitHub Desktop.
Makefile for gEDA projects (gschem, pcb)
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