Root/schhist/Makefile

1SHELL = /bin/bash
2
3CACHE_DIRS = {ppm0,ppm1,ppm2,ps}
4DEST = www-data@downloads.qi-hardware.com:werner/schhist
5RSYNC = eval rsync -a --progress "--exclude "$(CACHE_DIRS)/
6
7.PHONY: all update upload-index
8.PHONY: atusb-schhist atusb-schhist-upload
9.PHONY: xue-schhist xue-schhist-upload
10.PHONY: cntr-schhist cntr-schhist-upload
11.PHONY: atusd-schhist atusd-schhist-upload
12.PHONY: sie-ceimtun-schhist sie-ceimtun-schhist-upload
13.PHONY: sie-v2-schhist sie-v2-schhist-upload
14.PHONY: board-qi-avt2 board-qi-avt2-upload
15.PHONY: mmone-jtag-serial-cable
16
17# All the targets are for demo purposes pnly !
18
19all:
20    @echo "possible targets:" 2>&1
21    @echo " update upload-index" 2>&1
22    @echo " atusb-schhist atusb-schhist-upload" 2>&1
23    @echo " xue-schhist xue-schhist-upload" 2>&1
24    @echo " cntr-schhist cntr-schhist-upload" 2>&1
25    @echo " atusd-schhist atusd-schhist-upload" 2>&1
26    @echo " sie-ceimtun-schhist sie-ceimtun-schhist-upload" 2>&1
27    @echo " sie-v2-schhist sie-v2-upload" 2>&1
28    @exit 1
29
30update:
31    cd /home/nn/xue && git pull
32    cd /home/nn/sie-ceimtun && git pull
33    cd /home/nn/nn-usb-fpga && git pull
34    $(MAKE) atusb-schhist atusb-schhist-upload
35    $(MAKE) xue-schhist xue-schhist-upload
36    $(MAKE) cntr-schhist cntr-schhist-upload
37    $(MAKE) atusd-schhist atusd-schhist-upload
38    $(MAKE) sie-ceimtun-schhist sie-ceimtun-schhist-upload
39    $(MAKE) sie-v2-schhist sie-v2-schhist-upload
40
41upload-index:
42    scp demo-index.html $(DEST)/index.html
43
44atusb-schhist:
45    SCHHIST_TITLE=ben-wpan/atrf \
46      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
47      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
48      SCHHIST_ORDER=wpan-atrf:USB:RF \
49      ./schhist2web ../../ben-wpan atrf/wpan-atrf.sch _atusb
50
51atusb-schhist-upload:
52     $(RSYNC) _atusb/* $(DEST)/atusb/
53
54xue-schhist:
55    SCHHIST_TITLE=Xue \
56      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/xue/ \
57      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/xue/source/commit/{}/' \
58      ./schhist2web -S ../../xue kicad/xue-rnc/xue-rnc.sch _xue
59
60xue-schhist-upload:
61     $(RSYNC) _xue/* $(DEST)/xue/
62
63cntr-schhist:
64    SCHHIST_TITLE=ben-wpan/cntr \
65      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
66      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
67      ./schhist2web ../../ben-wpan cntr/cntr.sch _cntr
68
69cntr-schhist-upload:
70    $(RSYNC) _cntr/* $(DEST)/cntr/
71
72atusd-schhist:
73    SCHHIST_TITLE=ben-wpan/atusd \
74      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
75      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
76      ./schhist2web ../../ben-wpan atusd/atusd.sch _atusd
77
78atusd-schhist-upload:
79    $(RSYNC) _atusd/* $(DEST)/atusd/
80
81sie-ceimtun-schhist:
82    SCHHIST_TITLE="SIE CEIMTUN" \
83      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/sie-ceimtun/ \
84      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/sie-ceimtun/source/commit/{}/' \
85      ./schhist2web -f ../../sie-ceimtun KiCad/SIE_power_module.sch \
86        _sie_ceimtun
87
88sie-ceimtun-schhist-upload:
89    $(RSYNC) _sie_ceimtun/* $(DEST)/sie-ceimtun/
90
91sie-v2-schhist:
92    SCHHIST_TITLE="SIE V2" \
93      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/nn-usb-fpga/ \
94      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/nn-usb-fpga/source/commit/{}/' \
95      ./schhist2web ../../nn-usb-fpga \
96        KICAD_design_files/SAKC_PCB_v2/SAKC.sch _sie_v2
97
98sie-v2-schhist-upload:
99    $(RSYNC) _sie_v2/* $(DEST)/sie-v2/
100
101board-qi-avt2:
102    SCHHIST_TITLE="AVT2" \
103      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/board-qi-avt2/ \
104      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/board-qi-avt2/source/commit/{}/' \
105      SCHHIST_ADDLIBS=device \
106      ./schhist2web -S ../../board-qi-avt2 \
107        main/Qi_AVT2.sch _avt2
108
109board-qi-avt2-upload:
110    $(RSYNC) _avt2/* $(DEST)/avt2/
111
112mmone-jtag-serial-cable:
113    SCHHIST_TITLE="MM JTAG" \
114      SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/mmone-jtag-serial-cable/ \
115      SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/mmone-jtag-serial-cable/source/commit/{}/' \
116      ./schhist2web -S ../../mmone-jtag-serial-cable \
117        ./usb_jtag.sch _mm_jtag
118

Archive Download this file

Branches:
master



interactive