summaryrefslogtreecommitdiff
path: root/ytty/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2007-10-02 06:50:43 +0000
committerRich Felker <dalias@aerifal.cx>2007-10-02 06:50:43 +0000
commit822b3e760e4840dc688a840610379d977cec7b0c (patch)
treed4b6f5f61a6862cd988dbe95b96e6e4c19881c40 /ytty/Makefile
parent2a2e17bc6d57137bca9d764c23f1b178536900cd (diff)
include the ucf font compiler and the ytty font in uuterm repository,
incorporating a simple nonrecursive build system for the font.
Diffstat (limited to 'ytty/Makefile')
-rw-r--r--ytty/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/ytty/Makefile b/ytty/Makefile
new file mode 100644
index 0000000..a814a19
--- /dev/null
+++ b/ytty/Makefile
@@ -0,0 +1,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 $@ $<