Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # From http://svn.openmoko.org/trunk/gta02-core/components/
  3. #
  4. # Note that we don't have the concept of a "library of everything" so far.
  5. #
  6. SHELL = /bin/bash
  7. GEN = gencon.lib
  8. TITLE_NAME = SYMBOLS/COMPONENTS
  9. TITLE_FILE = kicad-libs-components.pdf
  10. .PHONY: all sch catalog view upload missing clean spotless
  11. all: $(GEN)
  12. # @echo "make what ? targets: sch loe"
  13. # @exit 1
  14. sch: $(GEN)
  15. eeschema `pwd`/components.sch
  16. DESCR-dcm: *.dcm
  17. ../scripts/dcm2desc -L . >$@ || { rm -f $@; exit 1; }
  18. include ../common/Makefile.title
  19. catalog catalog.pdf: HIERARCHY DESCR-dcm *.lib $(GEN)
  20. $(MAKE) title.ps
  21. genkicat -p -L . -t title.ps HIERARCHY DESCR-dcm \
  22. >catalog.pdf || \
  23. { rm -f catalog.pdf; exit 1; }
  24. view: catalog.pdf
  25. $${DSV_PDFVIEWER:-xpdf} catalog.pdf
  26. upload: catalog.pdf
  27. qippl catalog.pdf tmp/kicad-libs-components.pdf
  28. missing: $(GEN)
  29. ../scripts/missing-in-tree -L . HIERARCHY
  30. ../scripts/missing-in-tree -Q $(GEN:%=-x %) -L . components.pro
  31. %.lib: %.pl
  32. ./$< >$@ || { rm -f $@; exit 1; }
  33. #loe:
  34. # ./mkloe
  35. clean:
  36. rm -f DESCR-dcm title.ps
  37. spotless: clean
  38. rm -f catalog.pdf $(GEN)