1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-23 10:06:27 +02:00

atusb: added "clean" targets to main and CAM makefile

- Makefile: added "clean" target
- cam2/Makefile: added "clean" target (for file generated in cam2/)
- cam2/mkmk: added "clean" target to generated makefile
This commit is contained in:
Werner Almesberger 2010-12-27 23:50:00 -03:00
parent a0b064bd79
commit 3385afca0d
3 changed files with 13 additions and 3 deletions

View File

@ -1,7 +1,7 @@
.PHONY: all gen generate sch brd xpdf front back
.PHONY: all gen generate sch brd xpdf front back clean
all:
@echo "make what ? target: gen sch brd xpdf front back"
@echo "make what ? target: gen sch brd xpdf front back clean"
@exit 1
gen generate:
@ -42,3 +42,7 @@ atusb-Front.ps: atusb.brd
atusb-Back.ps: atusb.brd
pcbnew -p=ps_a4 -l Back --ps-pads-drill-opt=none $<
clean:
rm -f atusb-Front.ps atusb-Back.ps
rm -f atusb.drl atusb-PCB_Edges.gbr

View File

@ -1,4 +1,4 @@
.PHONY: all
.PHONY: all clean
all: Makefile.mkmk
@ -12,3 +12,6 @@ Makefile.mkmk: mkmk ../atusb.drl ../atusb-PCB_Edges.gbr
pcbnew --plot=gerber -l PCB_Edges `pwd`/../atusb.brd
-include Makefile.mkmk
clean::
rm -f Makefile.mkmk

View File

@ -60,4 +60,7 @@ plot:
dplot:
echo 'plot "< sed /^\$\$/d drill.gp" with linespoints' | \
gnuplot -persist
clean::
rm -f mill.gp mill.rml drill.gp drill.rml
EOF