home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / edit / jade / makefile < prev    next >
Makefile  |  1994-10-16  |  2KB  |  84 lines

  1. # Makefile for Jade version 3
  2. # Copyright (C) 1993, 1994 John Harper <jsh@ukc.ac.uk>
  3.  
  4. # Jade is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # Jade is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with Jade; see the file COPYING.  If not, write to
  16. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. VERSION = 3.2
  19.  
  20. SHELL = /bin/sh
  21. INSTALL = install
  22. INSTALL_PROG = $(INSTALL)
  23. INSTALL_DATA = $(INSTALL) -m 0644
  24. CPP = /lib/cpp
  25.  
  26. # Default directory to install in. Override the `prefix' arg on the command
  27. # line if you want.
  28. prefix = /usr/local
  29. exec_prefix = $(prefix)
  30. bindir = $(exec_prefix)/bin
  31. infodir = $(prefix)/info
  32. datadir = $(prefix)/lib
  33. jadedir = $(datadir)/jade/$(VERSION)
  34. lispdir = $(jadedir)/lisp
  35.  
  36. all : src/Makefile
  37.     (cd src && $(MAKE))
  38.  
  39. src/Makefile : src/Makefile.in src/config.h
  40.     (cd src \
  41.     && $(CPP) $(CPPFLAGS) -D_JADE_DIR="\\\"$(jadedir)/\\\"" Makefile.in Makefile \
  42.     || rm -f Makefile)
  43.  
  44. install : all installdirs
  45.     $(INSTALL_PROG) src/jade $(bindir)/jade
  46.     $(INSTALL_PROG) src/jadeclient $(bindir)/jadeclient
  47.     (cd man && $(MAKE) install.info 'INSTALL_DATA=$(INSTALL_DATA)' \
  48.         infodir=$(infodir))
  49.     (cd lisp && $(MAKE) install lispdir=$(lispdir) bindir=$(bindir) \
  50.         'INSTALL_DATA=$(INSTALL_DATA)')
  51.  
  52. installdirs :
  53.     $(SHELL) mkinstalldirs $(jadedir) $(bindir) $(infodir) $(lispdir)
  54.  
  55. uninstall :
  56.     rm -f $(bindir)/jade $(bindir)/jadeclient
  57.     (cd man && $(MAKE) uninstall.info infodir=$(infodir))
  58.     (cd lisp && $(MAKE) uninstall lispdir=$(lispdir))
  59.     rm -rf $(jadedir)
  60.  
  61. lispfiles :
  62.     (cd lisp && $(MAKE) lisp BINDIR=src)
  63.  
  64. tar :
  65.     tar -zcT FILES -f jade.tar.gz
  66.  
  67. distfiles : all
  68.     (cd dist && $(MAKE) VERSION=$(VERSION))
  69.     
  70. nobak :
  71.     rm -f *~ */*~
  72.  
  73. clean :
  74.     rm -f *~
  75.     (cd src && $(MAKE) clean)
  76.     (cd man && $(MAKE) clean)
  77.     (cd lisp && $(MAKE) clean)
  78.  
  79. realclean :
  80.     rm -f *~
  81.     (cd src && $(MAKE) realclean)
  82.     (cd man && $(MAKE) realclean)
  83.     (cd lisp && $(MAKE) realclean)
  84.