/ Published in: Makefile
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.PHONY: djvu .SUFFIXES: .djvu .ppm .pbm .jpg .tiff .tif DJVU_TARGET:=$(notdir $(CURDIR)).djvu DJVU_CHUNKS:=$(sort $(patsubst %.jpg,%.djvu,$(wildcard *.jpg)) $(patsubst %.pbm,%.djvu,$(wildcard *.pbm)) $(patsubst %.ppm,%.djvu,$(wildcard *.ppm))) DJVUFLAGS?=-dpi 300 -colors 4 -bgwhite PBM2DJVU:=cjb2 -dpi 300 -clean -loose #PBM2DJVU:=minidjvu -l -d 300 djvu: $(DJVU_TARGET) $(DJVU_TARGET): $(DJVU_CHUNKS) djvm -c $@ $^ %.djvu: %.jpg c44 -dpi 96 $^ $@ %.djvu: %.pbm $(PBM2DJVU) $^ $@ %.djvu: %.ppm cpaldjvu $(DJVUFLAGS) $^ $@ %.djvu: %.tiff cpaldjvu $(DJVUFLAGS) $^ $@ %.djvu: %.tif cpaldjvu $(DJVUFLAGS) $^ $@