Daniel Stenberg | 22fd075 | 2004-05-21 16:53:06 +0000 | [diff] [blame^] | 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) |