# Makefile for dviinfo $Revision: 1.1 $.
# Copyright (C) 1991-96 Valentino Kyriakides.

#### Start of configuration section. ####

VPATH = .
srcdir = $(VPATH)

CC = cl
CFLAGS = -nologo -DWIN32=1 -MD -O2
# If DEFS is leaved empty, "centimeters" are the default page metric option.
# DEFS =  -DINCH   # defs "inches" to be the default page metric option.
LDFLAGS =
LIBS = 

INSTALL = cp -p
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi

prefix = c:/usr/local
exec_prefix = $(prefix)

bindir = $(exec_prefix)/bin
mandir = $(prefix)/man/man1

# Prefix to be prepended to each installed program, normally empty or `g'.
binprefix = 

#### End of configuration section. ####

SHELL = sh

SRCS = dviinfo.c
OBJS = dviinfo.obj 
MANS = dviinfo.1
DISTFILES = $(SRCS) $(MANS) COPYING ChangeLog NEWS Makefile \
	    README INSTALL mkinstalldirs

all: dviinfo.exe
.PHONY: all

.c.obj:
	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<


dviinfo.exe: $(OBJS)
	$(CC) $(LDFLAGS) -Fe$@ $(OBJS) $(LIBS)

.PHONY: check
check: dviinfo.exe
	@echo expect no output from diff
	./dviinfo > test.out
	diff -c $(srcdir)/testdata test.out
	rm -f test.out

TAGS: $(SRCS)
	etags $(SRCS)

.PHONY: clean mostlyclean

clean::
	rm -f *.obj *.exe *~

install: dviinfo.exe
	cp -p dviinfo.exe c:/usr/local/txdir/w32tex/bin/
	cp -p dviinfo.exe c:/usr/work/edrive/wk/dist/WEB2CBIN/bin/

mostlyclean: clean

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:
