From b615a1555ea2f1e751bee5a042d4433245330cf0 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 1 Jun 2011 09:18:06 +0200 Subject: libjpeg version sanity check --- GNUmakefile | 8 ++++++-- jpeg/README | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 1a3aed4..1ef958b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -186,8 +186,12 @@ fbi: $(OBJS_FBI) $(OBJS_READER) ######################################################################## # general rules -.PHONY: build install clean distclean realclean -build: $(TARGETS) +.PHONY: check-libjpeg build install clean distclean realclean +build: check-libjpeg $(TARGETS) + +check-libjpeg: + @test -d jpeg/$(JPEG_VER) || \ + ( echo "Need files from libjpeg $(JPEG_VER) in jpeg/"; false) install: build $(INSTALL_DIR) $(bindir) diff --git a/jpeg/README b/jpeg/README index 76e7464..0d36ad6 100644 --- a/jpeg/README +++ b/jpeg/README @@ -1,2 +1,5 @@ some source files copyed over from The Independent JPEG Group's JPEG software + +There is a subdirectory for each JPEG_LIB_VERSION to handle +incompatible data structures of the jpeg library versions. -- cgit