diff options
Diffstat (limited to 'fonts/Makefile')
-rw-r--r-- | fonts/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fonts/Makefile b/fonts/Makefile new file mode 100644 index 0000000000..193fc80833 --- /dev/null +++ b/fonts/Makefile | |||
@@ -0,0 +1,26 @@ | |||
1 | ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -LL >$@ | ||
2 | |||
3 | SRC := $(wildcard *.t) | ||
4 | OBJS := $(SRC:%.t=%.shtml) | ||
5 | |||
6 | FSRC := $(wildcard *.bdf) | ||
7 | FOBJS := $(FSRC:%.bdf=%.fnt) $(FSRC:%.bdf=%.png) | ||
8 | |||
9 | all: bdf2bmp $(OBJS) $(FOBJS) | ||
10 | |||
11 | %.shtml : %.t | ||
12 | $(ACTION) $< | ||
13 | |||
14 | %.fnt : %.bdf | ||
15 | ../tools/convbdf -s 32 -l 255 -f "$<" | ||
16 | |||
17 | %.png : %.bdf | ||
18 | ./bdf2bmp "$<" "$<.bmp" | ||
19 | convert "$<.bmp" "$@" | ||
20 | rm $<.bmp | ||
21 | |||
22 | convbdf: convbdf.c | ||
23 | $(CC) -o "$@" "$<" | ||
24 | |||
25 | clean: | ||
26 | rm $(OBJS) $(FOBJS) \ No newline at end of file | ||