home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v92.tgz / v92.tar / v92 / src / Makefile
Makefile  |  1992-10-29  |  2KB  |  47 lines

  1. SHELL=/bin/sh
  2. MAKE=make
  3. what:
  4.     @echo "What do you want to make?"
  5.  
  6. Clean:
  7.         cd iconc; rm -f *.o iconc
  8.         cd common; rm -f *.o
  9.         cd preproc; rm -f *.o pp
  10.         cd rtt; rm -f *.o rtt
  11.         cd runtime; rm -f *.c *.o rt.db rt.a rttcur.lst\
  12.           rttfull.lst iconx
  13.         cd icont; rm -f *.o icont iconx.hdr hdr.h newhdr
  14.         -cd xpm; rm -f *.o *.a
  15. # force full rebuild of runtime system
  16.         touch h/define.h
  17.  
  18. # Entries beyond this point are for use at Arizona only.
  19. #   *** Do not delete the line above; it is used in trimming Makefiles
  20. #   for distribution ***
  21.  
  22. Dist-clean:
  23.         rm -f */Make*
  24.         cd h; rm -f define.h; rm -rf `gcomp *.[h]`
  25.         cd iconc; rm -f `gcomp *.[ch] *.icn *.txt`
  26.         cd runtime; rm -f *.c; rm -f `gcomp *.icn *.[ch] *.r *.ri`
  27.         cd rtt; rm -f `gcomp *.[chy]`
  28.         cd common;rm -f rswitch.*; rm -f `gcomp *.[ch] *.icn *.txt`
  29.         cd preproc; rm -f `gcomp README *.[ch]`
  30.         cd icont; rm -f y.tab.c\
  31.            hdr.h; rm -rf `gcomp *.[ch] *.icn *.txt`
  32.         rm -rf `gcomp Makefile h iconc rtt preproc common runtime \
  33.            icont vtran xpm`
  34.         cd xpm; rm -f *.o *.a
  35.  
  36. #  The following entry forces rebuilding of everthing from first-generation
  37. #  files, even files not normally recreated.  Doing this requires uncommenting
  38. #  some lines in common/Makefile, icont/Makefile, and iconc/Makefile.
  39.  
  40. Force-rebuild: Clean
  41.     cd h; rm -f kdefs.h
  42.     cd common; rm -f *.o yacctok.h lextab.h icontype.h \
  43.         doincl fixgram mktoktab patchstr pscript typespec
  44.     cd icont; rm -f *.o icont iconx.hdr mkkwd newhdr trash \
  45.         hdr.h keyword.h tgram.g ttoken.h tparse.c
  46.     cd iconc; rm -f *.o iconc cgram.g ctoken.h cparse.h
  47.