Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. MODULES=0805-6 1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
  2. bat-clip-aa-th bga \
  3. c-smd c-t-smd \
  4. dcjack df40 dfn din-5 dip dip4of6 do-214 dvi-recept-ra \
  5. e-switch320 er-oled-fpc30 eus evqq7 \
  6. fiducial \
  7. header he-2row-dip he-shrouded header-50mil-pin \
  8. inductor-2p ir \
  9. jtrace \
  10. lga ledsmd lp2032sm \
  11. mdip meander-2450MHz memcard8-amp-10100660 memcard8-hirose-dm3cs \
  12. memcard8-jae-st1w008s4b memcard8-molex-1050270001 memcard8-molex-47309 \
  13. mic-ra-dip mini-usb msl0104 \
  14. pads pads-array phonejack pogo \
  15. qfn qfp \
  16. rca-3-ra rev-led rj45 \
  17. sod soic sot23 spacer sot sot-323 ssop stdpass stqfn20 sw-spdt-smt \
  18. tact-4-rect-smt tactile-sw-spst-ra-dip to tsop tssop5 tswa \
  19. usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
  20. usb_a_rcpt_mid \
  21. vson-powerpad \
  22. xlr-plug xlr-socket \
  23. xtal-2 xtal-4 \
  24. zx62-b-5pa zx62m-b-5p
  25. SHELL = /bin/bash
  26. TITLE_NAME = FOOTPRINTS/MODULES
  27. TITLE_FILE = kicad-libs-modules.pdf
  28. .SUFFIXES: .fpd .mod
  29. .PHONY: all brd catalog view upload missing clean spotless
  30. all: $(MODULES:%=%.mod)
  31. .fpd.mod:
  32. fped -k $< $@
  33. modules.pro: Makefile
  34. ../scripts/modules-pro template.pro $(MODULES) >$@ || \
  35. { rm -f $@; exit 1; }
  36. brd: all modules.pro
  37. pcbnew `pwd`/modules.brd
  38. include ../common/Makefile.title
  39. catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
  40. $(MAKE) title.ps
  41. genkicat -F -p $(MODULES:%=-l %.fpd) -t title.ps \
  42. HIERARCHY DESCR >catalog.pdf || \
  43. { rm -f catalog.pdf; exit 1; }
  44. view: catalog.pdf
  45. $${DSV_PDFVIEWER:-xpdf} catalog.pdf
  46. upload: catalog.pdf
  47. qippl catalog.pdf tmp/kicad-libs-modules.pdf
  48. missing:
  49. ../scripts/missing-in-tree -F $(MODULES:%=-l %.fpd) HIERARCHY
  50. clean:
  51. rm -f *~*.fpd
  52. rm -f title.ps
  53. spotless: clean
  54. rm -f $(MODULES:%=%.mod)
  55. rm -f modules.pro