summaryrefslogtreecommitdiff
path: root/dviware/dvipaste/Makefile
blob: 1368ae8eb6e00ba2d723a11c942746411848acc4 (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
# Makefile for TeXplorators dvipaste
#
# config.sun-gcc.h is supplied as a model.
# UnixTeX would like to hear of any interesting
# configuration files for other systems.
# Copy the appropriate config.*.h to config.h
# then make
#
# This Makefile may not work for MSDOS. Make your 
# own one, or compile by hand.
#
CFLAGS = -g
CC = gcc

all:	dvipaste 

dvipaste:	dvipaste.o
	cc -o dvipaste dvipaste.o

dvipaste.o:	dvipaste.c config.h

config.h:
	@if test ! -f config.h ; then \
		echo "You must first copy the right config.*.h file" ; \
		echo "into config.h" ; exit 1 ; \
	fi

test:	./test/boxes1.tex ./test/boxes2.tex \
		./test/dvipaste.tex ./test/join.tex
	-(cd test ; tex boxes1 ; tex boxes2 ; tex join ; \
	../dvipaste join newjoin )

clean:
	rm -f *.o *~ \#* core *.log 

veryclean:	clean
	rm -f config.h dvipaste *.dat *.dvi
	(cd test ; rm -rf *.dvi *.log)