home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume32
/
detex
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-09-28
|
1KB
|
81 lines
# Makefile for detex and delatex
#
# Daniel Trinkle
# Computer Science Department
# Purdue University
#
# Detex is a program to remove TeX and LaTeX constructs from text source.
# Installation directory
#
DESTDIR = /usr/local/bin
# Compile time flags, just uncomment the necessary lines
#
DEFS =
#
# Add -traditional for GNU cc on ISC 386/ix system and possibly others
# (reported by pinard@iro.umontreal.ca)
#
#DEFS = ${DEFS} -traditional
#
# Add -DUSG for the SysV string manipulation routines
#
#DEFS = ${DEFS} -DUSG
#
# Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h
#
#DEFS = ${DEFS} -DMAXPATHLEN=1024
#
# Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
# in detex.l (reported by pinard@iro.umontreal.ca)
#
#DEFS = ${DEFS} -DNO_MALLOC_DECL
#
CFLAGS = -O ${DEFS}
LPR = lpr -p
# Program names
#
PROGS = detex
# Header files
#
HDR = detex.h
# Sources
#
SRC = detex.l
# Objects for various programs
#
D_OBJ = detex.o
all: ${PROGS}
detex: ${D_OBJ}
${CC} ${CFLAGS} -o $@ ${D_OBJ} -ll
detex.c:
sed -f states.sed detex.l | lex ${LFLAGS}
mv lex.yy.c detex.c
man-page:
troff -man detex.1l
install: detex
install -c -m 775 -o binary -g staff -s detex ${DESTDIR}
clean:
-rm -f a.out core *.s *.o ERRS errs .,* .emacs_[0-9]*
-rm -f ${PROGS} lex.yy.c
print: ${HDR} ${SRC}
${LPR} Makefile ${HDR} ${SRC}
# Dependencies
#
detex.c: detex.h
detex.c: detex.l