-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (44 loc) · 1.5 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##
## Programmer: Craig Stuart Sapp <[email protected]>
## Creation Date: Thu Nov 2 11:50:37 PDT 2023
## Last Modified: Thu Nov 2 11:50:41 PDT 2023
## Syntax: GNU Makefile
## URL: https://github.com/TassoInMusicProject/tasso-poem-markup/Makefile
## vim: ts=3
##
## Description: Makefile to convert ATON markup data into TEI.
##
DATADIR = data
all:
@echo "make update == Typical use of this makefile."
@echo "make download == Download ATON files containing poetic markup."
@echo "make tei == Convert ATON files into TEI files."
@echo "make index == Create file list data/index.txt for use on TiMP website markup pages."
@echo "make clean == Delete ATON and TEI files containing poetic markup."
update: download tei index
tei:
for aton in data/aton/*.aton; \
do \
cat $$aton | bin/makeMarkupTei > data/tei/$$(basename $$aton .aton).tei; \
done
download: clean
bin/downloadAtonFiles -d data/aton
index:
ls data/tei/* | sed "s/\.tei$$//; s/data\/tei\///" > data/index.txt
check: check-rhyme
rhyme: check-rhyme
check-rhyme:
@bin/checkRhyme data/aton/*.aton
checkv: check-rhyme-verse
rhymev: check-rhyme-verse
check-rhyme-v: check-rhyme-verse
check-rhyme-verse::
@bin/checkRhyme -v data/aton/*.aton
url: markup-urls
urls: markup-urls
mu: markup-urls
markup-urls:
@bin/id2tassoMarkupUrl
clean:
-rm $(DATADIR)/tei/*.tei
-rm $(DATADIR)/aton/*.aton