summaryrefslogtreecommitdiff
path: root/indexing/makeindex/test/Makefile
blob: 43f886dda562cfe2ca94cf9c7a47234cc8cc4033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# ======================================================================
# This UNIX Makefile runs the makeindex in the src directory on several
# test files, *.idx.  The output from each file foo.* is compared with
# correct output saved in files ok-foo.*.  As new bugs are discovered
# and fixed, test files that exhibit them should be incorporated in
# this directory.  Names should be kept within the 8+3 limit of PC DOS.
# [11-Sep-1991]
# ======================================================================

FILES		=	b209a b209b b209c b209d b209e b209f \
			b211a b211d b211e b211f b211g b211h \
			book test tort

# These files have private MakeIndex styles (*.ist) with the same base name
# The German ones must be run with -g
GERMAN-FILES	=	b211b

STYLE-FILES	=	b210a b211c

MAKEINDEX	=	../src/makeindex

RM		=	/bin/rm -f

SHELL		=	/bin/sh

all:	
	@echo "==================================================================="
	@echo "If makeindex has compiled correctly, there should be no differences"
	@echo "output by these tests, except possibly in the version lines"
	@echo "in the *.ilg files."
	@echo "==================================================================="
	-for f in $(FILES);\
	do\
		echo "";\
		echo "==================================================";\
		echo "Test file = $$f";\
		echo "";\
		$(MAKEINDEX) $$f;\
		echo Comparing ok-$$f.ind $$f.ind;\
		diff ok-$$f.ind $$f.ind;\
		echo Comparing ok-$$f.ilg $$f.ilg;\
		diff ok-$$f.ilg $$f.ilg;\
	done
	@echo "==================================================================="
	-for f in $(GERMAN-FILES);\
	do\
		echo "";\
		echo "==================================================";\
		echo "Test file = $$f (German sort option)";\
		echo "";\
		$(MAKEINDEX) -s $$f.ist -g $$f;\
		echo Comparing ok-$$f.ind $$f.ind;\
		diff ok-$$f.ind $$f.ind;\
		echo Comparing ok-$$f.ilg $$f.ilg;\
		diff ok-$$f.ilg $$f.ilg;\
	done
	@echo "==================================================================="
	-for f in $(STYLE-FILES);\
	do\
		echo "";\
		echo "==================================================";\
		echo "Test file = $$f (Private style file)";\
		echo "";\
		$(MAKEINDEX) -s $$f.ist $$f;\
		echo Comparing ok-$$f.ind $$f.ind;\
		diff ok-$$f.ind $$f.ind;\
		echo Comparing ok-$$f.ilg $$f.ilg;\
		diff ok-$$f.ilg $$f.ilg;\
	done
	@echo "=================================================="

clean mostlyclean:
	$(RM) \#*
	$(RM) *~
	$(RM) core
	-for f in $(FILES) $(GERMAN-FILES) $(STYLE-FILES);\
	do\
		$(RM) $$f.ind $$f.ilg;\
	done

clobber distclean realclean reallyclean:	clean