# Makefile for l2a 1997 July 16 [gh] #----------------------------------------------------------------------------- # Abstract: # Filter to detexify texts (handles both tex and latex). # # Portability: # Tested using SunOS 3.5.1 and 5.8 (using default cc). # It once compiled on W/NT (using MS C++ 4.1) - but that's now broken. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # START OF CUSTOMIZATION SECTION # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #---( Compiler )----------- # Microsoft C (32 bit C++ 4.1) #CC = cl # K&R cc #CC = cc #---( Operating system )--- # MS-DOS / WINNT shell #OBJ = l2a.obj yywrap.obj #EXE = l2a.exe #LLL = # UNIX #OBJ = l2a.o #EXE = l2a #LLL = -ll # UNIX w/o libl.a OBJ = l2a.o yywrap.o EXE = l2a #LLL = -ll #---( Files, directories, etc.)--- SRC = l2a.tex Makefile l2a.l l2a.1 yywrap.c file_id.diz manifest.txt BINDIR = ${PREFIX}/bin MANDIR = ${PREFIX}/man # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # END OF CUSTOMIZATION SECTION #----------------------------------------------------------------------------- #---( compilations )---------------------------------------------------------- all: $(OBJ) $(CC) -o l2a $(OBJ) $(LLL) #---( objects )--------------------------------------------------------------- l2a.o: l2a.l #---( housekeeping )---------------------------------------------------------- install: ${INSTALL_PROGRAM} $(EXE) $(BINDIR)/$(EXE) ${INSTALL_MAN} l2a.1 $(MANDIR)/man1/l2a.1 tidy: rm -f $(OBJ) $(EXE) l2a.zip l2a.txt lex.yy.c l2a.aux l2a.log fn.tmp clean: rm -f $(OBJ) $(EXE) l2a.zip l2a.txt lex.yy.c l2a.aux l2a.log fn.tmp l2a.c test: @echo "It is supposed to output an _Unrecognized markup command_ diagnostic." l2a < l2a.tex > l2a.txt @echo "The result of the test is on a file named \"l2a.txt\" dvi: latex l2a.tex zipdist: $(SRC) zip l2a.zip $(SRC) unzip -v l2a.zip zipsrc: $(SRC) zip l2asrc.zip $(SRC) unzip -v l2asrc.zip # EOF