aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile8
-rw-r--r--jpeg/README3
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.