1ALL: tohtml 2SHELL = @SHELL@ 3INSTALL_PROGRAM = @INSTALL_PROGRAM@ 4INSTALL_DATA = @INSTALL_DATA@ 5 6include ../../Makerules 7top_srcdir=@top_srcdir@ 8srcdir=@srcdir@ 9datadir = @datadir@ 10@VPATH@ 11 12LIBS = ../../lib/libsowing.a 13INCLUDES = -I${top_srcdir}/include -I. -I../../include 14DEFS = 15PROGRAMS = tohtml tortf 16 17BASEOBJS = search.o texactio.o rdaux.o rdindx.o label.o scan.o \ 18 refmap.o style.o dimen.o userdef.o tabular.o biblio.o environ.o \ 19 math.o rddefs.o latexinfo.o accent.o simpleif.o 20HEADERFILES = tex.h tohtmlpath.h search.h 21 22tohtml: Makefile $(HEADERFILES) tohtml.o tex2html.o $(BASEOBJS) 23 $(C_LINK) -o tohtml tohtml.o tex2html.o $(BASEOBJS) $(LIBS) 24 25# This is an obsolete program and is no longer used 26xwdsize: xwdsize.o 27 $(C_LINK) -o xwdsize xwdsize.o -lX11 28 29doc_SOURCES = tohtml.c 30 31testing: 32 cd testing && ${MAKE} testing 33clean: 34 -/bin/rm -f *.o *~ $(PROGRAMS) 35 -/bin/rm -f tohtml\ win32/debug/* 36 (cd testing && ${MAKE} clean ) 37distclean: clean 38 rm -f Makefile testing/Makefile tohtmlpath.h 39 40install: 41 $(INSTALL_PROGRAM) tohtml @bindir@/tohtml 42 $(INSTALL_DATA) ../../share/basedefs.txt @datadir@/basedefs.txt 43 44# We no longer need this program, which is good because X11 is getting 45# harder to find 46# $(INSTALL_PROGRAM) xwdsize @bindir@/xwdsize 47 48Makefile: Makefile.in 49 (cd ../.. && CONFIG_FILES=src/tohtml/Makefile && \ 50 export CONFIG_FILES && ./config.status) 51tohtmlpath.h: tohtmlpath.h.in ../../config.status 52 (cd ../.. && CONFIG_FILES=src/tohtml/tohtmlpath.h && \ 53 export CONFIG_FILES && ./config.status) 54 55.PHONY: testing clean distclean install all-redirect 56