Created PA0RDT MiniWhip Repository master
[PA0RDT.git] / makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
.PHONY: build
 
build: create-dirs all
 
all: gerb/PA0RDT_Gerb.zip gerb/PowerInjector_Gerb.zip
 
create-dirs:
        mkdir -p gerb
 
gerb/PA0RDT_Gerb.zip:
        pcb -x gerber --gerberfile gerb/PA0RDT MiniWhip/PA0RDT.pcb
        mv gerb/PA0RDT.group1.gbr               gerb/PA0RDT.GBL
        mv gerb/PA0RDT.top.gbr                  gerb/PA0RDT.GTL
        mv gerb/PA0RDT.bottommask.gbr   gerb/PA0RDT.GBS
        mv gerb/PA0RDT.topmask.gbr              gerb/PA0RDT.GTS
        mv gerb/PA0RDT.bottomsilk.gbr   gerb/PA0RDT.GBO
        mv gerb/PA0RDT.topsilk.gbr              gerb/PA0RDT.GTO
        mv gerb/PA0RDT.outline.gbr              gerb/PA0RDT.GKO
        mv gerb/PA0RDT.plated-drill.cnc gerb/PA0RDT.XLN
        zip gerb/PA0RDT_Gerb.zip gerb/PA0RDT.GBL gerb/PA0RDT.GTL gerb/PA0RDT.GBS gerb/PA0RDT.GTS gerb/PA0RDT.GBO gerb/PA0RDT.GTO gerb/PA0RDT.GKO gerb/PA0RDT.XLN
        rm gerb/PA0RDT.*
 
gerb/PowerInjector_Gerb.zip:
        pcb -x gerber --gerberfile gerb/PowerInjector PowerInjector/PowerInjector.pcb
        #mv gerb/PowerInjector.group1.gbr               gerb/PowerInjector.GBL
        mv gerb/PowerInjector.top.gbr                   gerb/PowerInjector.GTL
        mv gerb/PowerInjector.bottommask.gbr    gerb/PowerInjector.GBS
        mv gerb/PowerInjector.topmask.gbr               gerb/PowerInjector.GTS
        mv gerb/PowerInjector.bottomsilk.gbr    gerb/PowerInjector.GBO
        mv gerb/PowerInjector.topsilk.gbr               gerb/PowerInjector.GTO
        mv gerb/PowerInjector.outline.gbr               gerb/PowerInjector.GKO
        mv gerb/PowerInjector.plated-drill.cnc  gerb/PowerInjector.XLN
        zip gerb/PowerInjector_Gerb.zip gerb/PowerInjector.GBL gerb/PowerInjector.GTL gerb/PowerInjector.GBS gerb/PowerInjector.GTS gerb/PowerInjector.GBO gerb/PowerInjector.GTO gerb/PowerInjector.GKO gerb/PowerInjector.XLN
        rm gerb/PowerInjector.*
 
clean:
        rm -rf gerb