forked from OCR-D/assets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 702 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# BEGIN-EVAL makefile-parser --make-help Makefile
help:
@echo ""
@echo " Targets"
@echo ""
@echo " dist Copy test fixtures to another dir and replace URL"
@echo " start Start the asset server"
@echo ""
@echo " Variables"
@echo ""
@echo " PORT Port to run the asset server on"
# END-EVAL
REPO_URL = https://github.com/OCR-D/assets/raw/master/data/
# Port to run the asset server on
PORT=5001
# Copy test fixtures to another dir and replace URL
.PHONY: dist
dist:
mkdir -p $@
cp -r data/* $@
sed -i 's,$(REPO_URL),http://localhost:$(PORT)/,' $@/**/*.xml
# Start the asset server
start: dist
find $(PWD)/dist -name '*.xml'
cd dist && python2 -m SimpleHTTPServer $(PORT)