1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-04 19:04:32 +08:00
Files
archbase/materials/chapter4/Makefile
2021-10-27 19:14:51 +08:00

20 lines
1004 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 注意为了保持生成的文件宽度相同每个源文件最长的行应该都保持为80不够的可以在某一行末尾添空格
# 理论上各种Mono的字体应该都可以满足但实际测试发现很多字体并不能保证生成的字符宽度一致。
%.c.png:%.c
pygmentize -f png -O encoding=utf8,font_name='SimSun',line_numbers=False $< -o $@
# pygmentize -f png -O encoding=utf8,font_name='Noto Sans Mono CJK SC',line_numbers=False $< -o $@
%.S.png:%.S
pygmentize -f png -O encoding=utf8,font_name='SimSun',line_numbers=False $< -o $@
# pygmentize -f png -O encoding=utf8,font_name='Noto Sans Mono CJK SC',line_numbers=False $< -o $@
%.txt.png:%.txt
pygmentize -f png -O encoding=utf8,font_name='SimSun',line_numbers=False $< -o $@
all: fun.c.png fun_mips.S.png fun_la.S.png varg.c.png simple.c.png simple.S.png simple_nofp.S.png normal.c.png normal.S.png dynamic.c.png dynamic.S.png keyboard_interrupt.txt.png syscall_write.S.png
@echo 'done'
clean:
rm -f *.png