2010-09-07 23:03:19 +03:00
|
|
|
SHELL = /bin/bash
|
|
|
|
|
|
|
|
CACHE_DIRS = {ppm0,ppm1,ppm2,ps}
|
2010-09-22 16:40:26 +03:00
|
|
|
DEST = www-data@downloads.qi-hardware.com:werner/schhist
|
2010-09-07 23:03:19 +03:00
|
|
|
RSYNC = eval rsync -a --progress "--exclude "$(CACHE_DIRS)/
|
|
|
|
|
2010-09-22 16:40:26 +03:00
|
|
|
.PHONY: all update upload-index
|
|
|
|
.PHONY: atusb-schhist atusb-schhist-upload
|
2010-09-07 23:03:19 +03:00
|
|
|
.PHONY: xue-schhist xue-schhist-upload
|
|
|
|
.PHONY: cntr-schhist cntr-schhist-upload
|
2010-09-08 00:25:55 +03:00
|
|
|
.PHONY: atusd-schhist atusd-schhist-upload
|
2010-09-25 11:27:50 +03:00
|
|
|
.PHONY: sie-ceimtun-schhist sie-ceimtun-schhist-upload
|
2010-09-07 23:03:19 +03:00
|
|
|
|
|
|
|
# All the targets are for demo purposes pnly !
|
|
|
|
|
|
|
|
all:
|
2010-09-25 11:27:50 +03:00
|
|
|
@echo "possible targets:" 2>&1
|
|
|
|
@echo " update upload-index" 2>&1
|
|
|
|
@echo " atusb-schhist atusb-schhist-upload" 2>&1
|
|
|
|
@echo " xue-schhist xue-schhist-upload" 2>&1
|
|
|
|
@echo " cntr-schhist cntr-schhist-upload" 2>&1
|
|
|
|
@echo " atusd-schhist atusd-schhist-upload" 2>&1
|
|
|
|
@echo " sie-ceimtun-schhist sie-ceimtun-schhist-upload" 2>&1
|
|
|
|
@exit 1
|
2010-09-07 23:03:19 +03:00
|
|
|
|
2010-09-22 16:40:26 +03:00
|
|
|
update:
|
|
|
|
cd /home/nn/xue && git pull
|
2010-09-25 11:27:50 +03:00
|
|
|
cd /home/nn/sie-ceimtun && git pull
|
2010-09-22 16:40:26 +03:00
|
|
|
$(MAKE) atusb-schhist atusb-schhist-upload
|
|
|
|
$(MAKE) xue-schhist xue-schhist-upload
|
|
|
|
$(MAKE) cntr-schhist cntr-schhist-upload
|
|
|
|
$(MAKE) atusd-schhist atusd-schhist-upload
|
2010-09-25 11:27:50 +03:00
|
|
|
$(MAKE) sie-ceimtun-schhist sie-ceimtun-schhist-upload
|
2010-09-22 16:40:26 +03:00
|
|
|
|
|
|
|
upload-index:
|
|
|
|
scp demo-index.html $(DEST)/index.html
|
|
|
|
|
2010-09-08 00:25:55 +03:00
|
|
|
atusb-schhist:
|
2010-09-07 23:03:19 +03:00
|
|
|
SCHHIST_TITLE=ben-wpan/atrf \
|
|
|
|
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
|
|
|
|
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
|
2010-09-22 16:14:38 +03:00
|
|
|
SCHHIST_ORDER=wpan-atrf:USB:RF \
|
2010-09-08 00:25:55 +03:00
|
|
|
./schhist2web ../../ben-wpan atrf/wpan-atrf.sch _atusb
|
2010-09-07 23:03:19 +03:00
|
|
|
|
2010-09-08 00:25:55 +03:00
|
|
|
atusb-schhist-upload:
|
2010-09-22 16:40:26 +03:00
|
|
|
$(RSYNC) _atusb/* $(DEST)/atusb/
|
2010-09-07 23:03:19 +03:00
|
|
|
|
|
|
|
xue-schhist:
|
|
|
|
SCHHIST_TITLE=Xue \
|
|
|
|
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/xue/ \
|
|
|
|
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/xue/source/commit/{}/' \
|
|
|
|
./schhist2web -S ../../xue kicad/xue-rnc/xue-rnc.sch _xue
|
|
|
|
|
|
|
|
xue-schhist-upload:
|
2010-09-22 16:40:26 +03:00
|
|
|
$(RSYNC) _xue/* $(DEST)/xue/
|
2010-09-07 23:03:19 +03:00
|
|
|
|
|
|
|
cntr-schhist:
|
|
|
|
SCHHIST_TITLE=ben-wpan/cntr \
|
|
|
|
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
|
|
|
|
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
|
2010-09-08 00:25:55 +03:00
|
|
|
./schhist2web ../../ben-wpan cntr/cntr.sch _cntr
|
2010-09-07 23:03:19 +03:00
|
|
|
|
|
|
|
cntr-schhist-upload:
|
2010-09-22 16:40:26 +03:00
|
|
|
$(RSYNC) _cntr/* $(DEST)/cntr/
|
2010-09-08 00:25:55 +03:00
|
|
|
|
|
|
|
atusd-schhist:
|
2010-09-25 11:27:50 +03:00
|
|
|
SCHHIST_TITLE=ben-wpan/atusd \
|
2010-09-08 00:25:55 +03:00
|
|
|
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/ben-wpan/ \
|
|
|
|
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/ben-wpan/source/commit/{}/' \
|
|
|
|
./schhist2web ../../ben-wpan atusd/atusd.sch _atusd
|
|
|
|
|
|
|
|
atusd-schhist-upload:
|
2010-09-22 16:40:26 +03:00
|
|
|
$(RSYNC) _atusd/* $(DEST)/atusd/
|
2010-09-25 11:27:50 +03:00
|
|
|
|
|
|
|
sie-ceimtun-schhist:
|
|
|
|
SCHHIST_TITLE="SIE CEIMTUN" \
|
|
|
|
SCHHIST_HOME_URL=http://projects.qi-hardware.com/index.php/p/sie-ceimtun/ \
|
|
|
|
SCHHIST_COMMIT_TEMPLATE='http://projects.qi-hardware.com/index.php/p/sie-ceimtun/source/commit/{}/' \
|
|
|
|
./schhist2web -f ../../sie-ceimtun KiCad/SIE_power_module.sch \
|
|
|
|
_sie_ceimtun
|
|
|
|
|
|
|
|
sie-ceimtun-schhist-upload:
|
|
|
|
$(RSYNC) _sie_ceimtun/* $(DEST)/sie-ceimtun/
|