aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 6 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)