home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume20 / notation / patch01 / Makefile < prev   
Encoding:
Makefile  |  1991-06-28  |  2.8 KB  |  114 lines

  1. # Makefile for notation program
  2. # (C) Henry Thomas 1990
  3.  
  4. FILES      = notation.c drivers.c lexer.c lexer.l
  5. HEADERS       = notation.h drivers.h lexer.h chesstype.h chesssymb.def
  6. #LIBDIR     = ./lib
  7. LIBDIR     = .
  8. BINDIR=$(HOME)/local/bin.$(HOSTTYPE)
  9.  
  10. OBJECTS    = notation.o drivers.o lexer.o
  11.  
  12. OTHERFILES = Makefile HELPFILE \
  13.     keywords.txt algebric.txt shortened.txt boudy.txt\
  14.     notation.doc notation.n \
  15.     README TODO COPYING CHANGES \
  16.     print-ps \
  17.     Header.ps Footer.ps Header.tex \
  18.     convsymb.txt convsymb.tex \
  19.     symboles.txt symboles.tex symb.tex
  20.  
  21.  
  22. SAVEFILES  = $(FILES) $(HEADERS) $(OTHERFILES)
  23.  
  24. KITNAME       = "Notation"
  25.  
  26. ############################################################
  27. # you might want to define the lib path : 
  28. #    do not forget the trailing /
  29. # ( the library is the place where the HELPFILE, Heading, fonts etc are)
  30. # also you can have default language for input/ouput
  31. # define DEFAULT_INPUT_LANGUAGE and DEFAULT_OUPUT_LANGUAGE
  32. # value can be:
  33. #    FRENCH, ENGLISH, GERMAN, ITALIAN, SPANISH, DUTCH
  34. # ANSI C/ TURBO C (MSDOS)
  35. # to compile with TURBO C or ANSI C, define TURBOC
  36. CFLAGS     = -DLIB_DIR=\"$(HOME)/echecs/Notation/\" \
  37. -DDEFAULT_INPUT_LANGUAGE=FRENCH -DDEFAULT_OUTPUT_LANGUAGE=FRENCH 
  38. LDFLAGS    =
  39.  
  40.  
  41. LEX= flex
  42.  
  43. #CC= gcc -ansi -pedantic
  44.  
  45. ############################################################
  46.  
  47. .KEEPSTATE:
  48.  
  49. all: notation notation.doc symboles.txt
  50.  
  51. lexer.c: lexer.l chesstype.h
  52.     $(LEX) -t lexer.l > lexer.c
  53.  
  54. notation: $(OBJECTS)
  55.     $(CC) $(CFLAGS) -o notation  $(OBJECTS) 
  56.  
  57. symboles.txt:  chesssymb.def convsymb.txt
  58.     /lib/cpp -P convsymb.txt| sed -e "s/\\\\//" |\
  59.     sed -e 's/\"//g' | cat -s > symboles.txt
  60.  
  61. symb.tex:  chesssymb.def convsymb.tex
  62.     /lib/cpp -P convsymb.tex | sed -e 's/\\\\/\\/g' |\
  63.     sed -e 's/\"//g' | cat -s > symb.tex
  64. symboles.dvi: symboles.tex symb.tex
  65.     latex symboles.tex
  66.  
  67. kit     : $(SAVEFILES)
  68.     makekit -n$(KITNAME) $(LIBDIR) $(SAVEFILES) MANIFEST > MANIFEST
  69.  
  70. shar     : $(SAVEFILES)
  71.     shar -o$(KITNAME).shar $(LIBDIR) $(SAVEFILES) 
  72.     compress -f $(KITNAME).shar
  73.  
  74. tar     : $(SAVEFILES)
  75.     tar -cvf - $(SAVEFILES) > $(KITNAME).tar
  76.     compress -f $(KITNAME).tar
  77.  
  78. zoo    : $(SAVEFILES)
  79. #    chmod +w $(KITNAME).zoo
  80.     zoo -freshen $(KITNAME).zoo $(SAVEFILES)
  81.     rm -f $(KITNAME).bak
  82. #    chmod -w $(KITNAME).zoo
  83.  
  84. sauve   :
  85.     make zoo
  86. #    chmod +w $(KITNAME).zoo
  87.     cp $(KITNAME).zoo $(HOME)/local/sauve
  88. #    chmod -w $(KITNAME).zoo
  89.  
  90. install: HELPFILE
  91.     make notation
  92.     strip notation
  93.     chmod +x print-ps
  94.     make notation.doc 
  95.     make symboles.txt
  96.  
  97. hthomas:
  98.     make install
  99.     mv notation $(BINDIR)
  100.  
  101. clean:
  102.     rm -f notation $(OBJECTS) lexer.c
  103.     rm -f $(KITNAME).shar[.Z] $(KITNAME).tar[.Z] $(KITNAME)0? MANIFEST
  104.  
  105. notation.doc: notation.n
  106.     nroff -man notation.n > notation.doc
  107.  
  108.  
  109. # DO NOT DELETE THIS LINE -- make depend depends on it.
  110.  
  111. drivers.o: chesstype.h notation.h drivers.h chesssymb.def
  112. lexer.o: chesstype.h notation.h lexer.h chesssymb.def
  113. notation.o: chesstype.h drivers.h notation.h lexer.h chesssymb.def
  114.