File: Makefile

package info (click to toggle)
libnumbertext 1.0.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: python: 439; cpp: 395; java: 244; javascript: 108; makefile: 101; xml: 84; sh: 40
file content (22 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# convert all ../data/*.sor files to name_*.py Python modules
BIN=../bin

all: org/Numbertext/Soros.py org/Numbertext/places.py org/Numbertext/locales.py \
  $(addprefix numbertext_, $(addsuffix .py, $(basename $(notdir $(wildcard ../data/*.sor)))))

org/Numbertext/Soros.py: ../src/Soros.py
	cp ../src/Soros.py org/Numbertext/

org/Numbertext/places.py: ../src/places.py
	cp ../src/places.py org/Numbertext/

#org/Numbertext/%.py: ../data/%.sor $(BIN)/Convert.py
numbertext_%.py: ../data/%.sor $(BIN)/Convert.py
	python3 $(BIN)/Convert.py $< >$@

org/Numbertext/locales.py: $(addprefix numbertext_, $(addsuffix .py, $(basename $(notdir $(wildcard ../data/*.sor)))))
	python3 $(BIN)/locales.py $(basename $(notdir $(wildcard ../data/*.sor))) $(shell cat ../data/*.sor | grep -Eo '\[:.....:]' | tr '-' '_' | tr -d '[]:' | sort | uniq) >org/Numbertext/locales.py

clean:
	rm -f $(addprefix numbertext_, $(addsuffix .py, $(basename $(notdir $(wildcard ../data/*.sor)))))
	rm -f org/Numbertext/places.py* org/Numbertext/locales.py* org/Numbertext/Soros.py*