|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
# (find-angg "vtutil/")
# (find-angg "vtutil/vtutil.lua" "e_scripts")
# Source files
#
#LUAFILES = vtfontlib.lua vtutil.lua mathchars.lua inc.lua makefonts_8.lua
LUAFILES = vtfontlib.lua vtutil.lua mathchars.lua inc.lua
CFILES = lbitlib.c piofontx.c
ORIGFONTS = ega0.8 ega1.8 ega0.16 ega1.16
ETCFILES = Makefile regex-lua-etags
# Generated files
#
SOS = lbitlib.so piofontx.so
GENERATEDFONTS = ega0-iso.8 ega1-iso.8 ega0-iso.16 ega1-iso.16 isomath.8
OTHERGENERATEDFILES = isomath.el
VTUTILDEPS = $(SOS)
ALLFONTS = $(ORIGFONTS) $(GENERATEDFONTS)
# Other definitions
#
LUA ?= $(HOME)/usrc/lua-5.0.2
LUAINC ?= $(LUA)/include
VERSION = 0.01
TARGZ = vtutil-$(VERSION).tar.gz
# VTUTILE = lua50 vtutil.lua -e
VTUTILE = ~edrx/bin/lua51 vtutil51.lua -e
all: $(VTUTILDEPS) TAGS $(GENERATEDFONTS) grids $(OTHERGENERATEDFILES)
clean:
rm -fv $(SOS) TAGS $(GENERATEDFONTS) $(OTHERGENERATEDFILES)
-rm -v *.grid
sos: $(SOS)
piofontx.so:
gcc -Wall -shared -I$(LUAINC) -o piofontx.so piofontx.c
lbitlib.so:
gcc -Wall -shared -I$(LUAINC) -o lbitlib.so lbitlib.c
# (find-es "lua5" "etags")
TAGS: $(LUAFILES)
etags --lang=none --regex=@regex-lua-etags $(LUAFILES)
fonts: $(GENERATEDFONTS)
ega0-iso.8: ega0.8 $(VTUTILDEPS)
$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
ega1-iso.8: ega1.8 $(VTUTILDEPS)
$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
ega0-iso.16: ega0.16 $(VTUTILDEPS)
$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
ega1-iso.16: ega1.16 $(VTUTILDEPS)
$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
isomath.8: ega1-iso.8 $(VTUTILDEPS)
$(VTUTILE) 'Loadfont("$<");Modifyfont();Writefont("$@")'
isomath.el: $(VTUTILDEPS)
$(VTUTILE) 'Prepidtom();Mcomposes();writefile("$@",Composestoel())'
%.grid: % $(VTUTILDEPS)
$(VTUTILE) 'Loadfont("$<");Writefont("$@")'
# (find-node "(make)Text Functions" "$(objects:.o=.c)")
#
grids: $(ALLFONTS:=.grid)
%.setfont: % $(VTUTILDEPS)
@$(VTUTILE) 'Loadfont("$<");Setfont()'
437: ega0.8.setfont
850: ega1.8.setfont
iso-orig: ega1-iso.8.setfont
iso: isomath.8.setfont
16: ega0.16.setfont
# (ascstr 128 159)
# (ascstr 160 255)
# (find-node "(make)Automatic")
# (find-node "(make)Echoing")
OTHERTGZFILES = README Makefile pio_fontx.c defkeymap.map editing-font.png
.tar.gz $(TARGZ):
tar -cvzf $(TARGZ) $(OTHERTGZFILES) $(LUAFILES) $(BASEFONTS)
# The "loadkeys" targets.
# This is a mess and will work only for keyboards with the US layout.
# (find-fline "/usr/share/keymaps/i386/qwerty/")
# Our "defkeymap" is not very standard, but anyway.
# (find-fline "~/MTA/latinmath.map")
# (find-fline "~/vtutil/defkeymap.map")
#
mathlatin.map: defkeymap.map composes_latin
cat defkeymap.map composes_latin > $@
math850.map: defkeymap.map composes_latin table_latin table_850
cat defkeymap.map composes_latin | $(TRLATINTO850) > $@
#
%.loadkeys: %.map
loadkeys -q $<
# Local Variables:
# ee-anchor-format: "\n%s"
# End: