$OpenBSD: patch-pbmtools_Makefile,v 1.4 2014/04/08 13:59:32 sthen Exp $
--- pbmtools/Makefile.orig	Thu Mar 27 18:47:15 2014
+++ pbmtools/Makefile	Tue Apr  8 14:54:55 2014
@@ -10,7 +10,7 @@ CPPFLAGS = -I../libjbig 
 .SUFFIXES: .1 .5 .txt $(SUFFIXES)
 .PHONY: txt test test82 test85 clean
 
-all: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85 txt
+all: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85
 
 txt: pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
 
@@ -33,11 +33,11 @@ pbmtojbg85.o: pbmtojbg85.c ../libjbig/jbig85.h
 
 ../libjbig/libjbig.a: ../libjbig/jbig.c ../libjbig/jbig.h \
 	../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
-	make -C ../libjbig libjbig.a
+	cd ../libjbig; $(MAKE) libjbig.a
 
 ../libjbig/libjbig85.a: ../libjbig/jbig85.c ../libjbig/jbig85.h \
 	../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
-	make -C ../libjbig libjbig85.a
+	cd ../libjbig; $(MAKE) libjbig85.a
 
 analyze:
 	clang $(CPPFLAGS) --analyze *.c
@@ -111,8 +111,11 @@ test85: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85 test-t
 	make IMG=t82 "OPTIONSP=-Y -1 1920" dotest85
 	make IMG=t82 "OPTIONSP=-Y -1 1949" dotest85
 	make IMG=t82 "OPTIONSP=-Y -1 1950" dotest85
+	make IMG=ccitt1 dotest1
 	make IMG=ccitt1 dotest85
+	make IMG=ccitt2 dotest1
 	make IMG=ccitt2 dotest85
+	make IMG=ccitt3 dotest1
 	make IMG=ccitt3 dotest85
 	rm -f test-*.jbg test-*.jbg85 test-*.pbm
 	@echo
@@ -147,7 +150,7 @@ test-%.pbm: ../examples/%.jbg
 	./jbgtopbm $< $@
 
 test-t82.pbm:
-	make -C ../libjbig tstcodec
+	cd ../libjbig; $(MAKE) tstcodec
 	../libjbig/tstcodec $@
 
 FOPT=-c 1000 -p 300000 -m 3
