summaryrefslogtreecommitdiff
path: root/ytty/Makefile
blob: a814a19d900d600f04bd13f9e9911998c48b6a9c (plain)
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

YTTY_HEXDRAW = $(YTTY_BASE)../hexdraw.sh
YTTY_UCFCOMP = $(YTTY_BASE)ucfcomp.host

YTTY_TARGET = $(YTTY_BASE)ytty.ucf

YTTY_DRAW_SRCS = $(patsubst %,$(YTTY_BASE)%,\
	base \
	enclose \
	math punct diacr geom arrows boxdraw braille \
	latin greek cyrillic runic hebrew \
	devanagari kannada thai tibetan \
	tech curr abbrev symbols \
	hangul kana widelatin \
	)

YTTY_HEX_SRCS = $(YTTY_BASE)kanji.hex

CLEAN := $(CLEAN)  $(YTTY_TARGET) $(YTTY_UCFCOMP)

$(YTTY_TARGET): $(YTTY_DRAW_SRCS) $(YTTY_HEX_SRCS) $(YTTY_UCFCOMP)
	( cat $(YTTY_DRAW_SRCS) | $(YTTY_HEXDRAW) ; cat $(YTTY_HEX_SRCS) ) \
	| $(YTTY_UCFCOMP) > $@ || ( rm -f $@ ; exit 1 )

$(YTTY_BASE)ucfcomp.host: $(YTTY_BASE)../ucfcomp.c
	$(HOSTCC) -o $@ $<