summaryrefslogtreecommitdiff
path: root/biblio/tib/test/Makefile
blob: 96161a3b01d49fbd7d06acb5b2e503a872ccf692 (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
SHELL = /bin/sh
TEXBIN = tex

all: test

test: first testlist testlook testtib testdex message

first:
	-rm -f TEST.LOG
	-cp INDEX.TST INDEX
	touch INDEX

testtib:
	../src/tib -x test.tex | $(TEXBIN)
	@if [ -f texput.dvi ]; then \
            mv texput.dvi test-t.dvi; \
            echo ""; echo "tib o.k."|tee -a TEST.LOG;echo ""; else \
            echo ""; echo "*** Test of tib failed!"|tee -a TEST.LOG; echo "";\
        fi 

testlist:
	../src/tiblist -x test.ref | $(TEXBIN)
	@if [ -f texput.dvi ]; then \
	    mv texput.dvi testr-t.dvi;\
            echo ""; echo "tiblist o.k."|tee -a TEST.LOG; echo ""; else \
            echo "";echo "*** Test of tiblist failed!"|tee -a TEST.LOG; \
            echo "";  fi 

testlook:
	../src/tiblook derham|tee derham
	@if diff -bc derham DERHAM.TST; then \
	    echo ""; echo "tiblook o.k."|tee -a TEST.LOG; echo ""; else \
            echo ""; echo '*** Test of tiblook failed!'|tee -a TEST.LOG; \
            echo ""; fi 


testdex:
	-../src/tibdex test.ref
	@if diff -bc INDEX INDEX.TST; then \
	    echo ""; echo "tibdex o.k."|tee -a TEST.LOG; echo ""; else \
            echo ""; echo '*** Test of tibdex failed!'|tee -a TEST.LOG; \
            echo ""; fi 

message:
	@echo ""
	@cat TEST.LOG
	@echo ""
	@echo "*** If all went well, you might now want"
	@echo "*** to review the two dvi-files produced, i.e."
	@echo "*** (test/)test-t.dvi and (test/)testr-t.dvi." 
	@echo "*** Happy TiBbing..."

clean:
	-rm -f *.dvi texput.* derham TEST.LOG INDEX *~