home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / lib / Makefile.in < prev   
Makefile  |  1998-04-23  |  4KB  |  146 lines

  1. ###/* This file is part of
  2. ###* ======================================================
  3. ###*
  4. ###*           LyX, the High Level Word Processor
  5. ###*
  6. ###*           Copyright (C) 1995 Matthias Ettrich
  7. ###*
  8. ###*======================================================*/
  9. ###
  10. ###
  11. ### Makefile by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
  12. ###  
  13.  
  14.  
  15. # Common autoconf directories
  16. prefix = @prefix@
  17. exec_prefix = @exec_prefix@
  18. srcdir = @srcdir@
  19. top_srcdir = @top_srcdir@
  20. bindir = @bindir@
  21. datadir = @datadir@
  22. mandir = @mandir@
  23. program_suffix = @program_suffix@
  24. SCRIPT_SUFFIX=
  25.  
  26. # These are needed for the bindist target
  27. absbuilddir=@absbuilddir@/lib
  28. abssrcdir=@abstopsrcdir@/lib
  29.  
  30. # The name to use to install LyX
  31. PACKAGE = @PACKAGE@
  32. VERSION = @VERSION@
  33. bindistdir = ../$(PACKAGE)-$(VERSION)-bin
  34. distdir = $(PACKAGE)-$(VERSION)
  35.  
  36. # For all LyX support files
  37. LYX_DIR = $(datadir)/$(PACKAGE)
  38.  
  39. ###################################################################
  40. # You should not need to change anything below this line.
  41.  
  42. # for multiple architectures compilation
  43. VPATH = @srcdir@
  44.  
  45. # The GNU coding standards recommends this. Don't ask me why...
  46. SHELL = /bin/sh
  47. .SUFFIXES:
  48. .SUFFIXES: .C .o
  49. @SET_MAKE@
  50.  
  51. # Various commands
  52. FIND = find
  53. ETAGS = etags
  54. MKINSTALLDIRS = $(top_srcdir)/config/mkinstalldirs
  55. INSTALL = @INSTALL@
  56. INSTALL_DATA = @INSTALL_DATA@
  57. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  58. RM = rm -f
  59. MANSUFFIX = 1
  60. POD2MAN = pod2man
  61.  
  62. SUBDIRS    = clipart layouts doc kbd templates bind examples tex images
  63. CLIPART    = clipart/*.eps
  64. DEFS       = layouts/*.layout layouts/*.inc 
  65. DOC        = doc/*.lyx doc/LaTeXConfig.lyx.in doc/*.eps
  66. KBD        = kbd/*.kmap kbd/*.cdef
  67. TEMPL      = templates/*.lyx
  68. BIND       = bind/*.bind
  69. EXAMPLES   = examples/*.lyx
  70. TEXSUPPORT = tex/*.cls
  71. IMAGES     = images/*.xpm images/*.xbm
  72. MISC       = lyxrc CREDITS chkconfig.ltx
  73. MISCPROG   = configure$(SCRIPT_SUFFIX)
  74. BUILDINSTFILES = lyxrc.defaults doc/LaTeXConfig.lyx \
  75.                  textclass.lst packages.lst
  76. RELYXFILES  = reLyX/*.pm reLyX/*.pl reLyX/README reLyX/BUGS \
  77.               reLyX/CHANGES reLyX/Text/*.pm reLyX/reLyX.pod
  78.  
  79. SRCDISTFILES = $(CLIPART) $(DEFS) $(DOC) $(KBD) $(DOC) $(KBD) $(TEMPL) \
  80.                $(BIND) $(EXAMPLES) $(TEXSUPPORT) $(IMAGES) $(MISC)
  81.  
  82. SRCDISTPROGS = $(MISCPROG)
  83.  
  84. BINDISTLINKS = $(SUBDIRS) $(MISC) $(MISCPROG) @RELYXDIR@
  85.  
  86. all:
  87.  
  88. reLyX/reLyX.man: reLyX/reLyX.pod
  89.     $(POD2MAN) ${srcdir}/reLyX/reLyX.pod > reLyX/reLyX.man
  90.  
  91. installdirs: reLyX/reLyX.man
  92.     for dir in $(SUBDIRS); do \
  93.       $(MKINSTALLDIRS) $(LYX_DIR)/$$dir ; \
  94.     done
  95.  
  96. install-reLyX: 
  97.     $(MKINSTALLDIRS) $(LYX_DIR)/reLyX \
  98.                      $(LYX_DIR)/reLyX/Text
  99.     files=`cd ${srcdir} ; echo $(RELYXFILES)` ; \
  100.     for i in $${files} ; do \
  101.        $(INSTALL_DATA) ${srcdir}/$$i $(LYX_DIR)/$$i ; \
  102.     done ;
  103.     $(INSTALL_PROGRAM) reLyX/reLyX $(bindir)/reLyX 
  104.     $(INSTALL_DATA) reLyX/reLyX.man \
  105.        $(mandir)/man$(MANSUFFIX)/reLyX.$(MANSUFFIX)
  106.  
  107.  
  108. install: @INSTALL_TARGET@
  109.  
  110. install-unix:  installdirs @install_reLyX@
  111.     files=`cd ${srcdir} ; echo $(SRCDISTFILES)` ; \
  112.     for i in $${files} ; do \
  113.        $(INSTALL_DATA) ${srcdir}/$$i $(LYX_DIR)/$$i ; \
  114.     done 
  115.     files=`cd ${srcdir} ; echo $(SRCDISTPROGS)` ; \
  116.     for i in $${files} ; do \
  117.        $(INSTALL_PROGRAM) ${srcdir}/$$i $(LYX_DIR)/$$i ; \
  118.     done
  119.     for i in $(BUILDINSTFILES) ; do \
  120.        $(INSTALL_DATA) $$i $(LYX_DIR)/$$i ; \
  121.     done;
  122.  
  123. install-os2:
  124.     -mkdir $(X11ROOT)\XFree86\lib\X11\lyx
  125.     cd .. && xcopy /s lib $(X11ROOT)\XFree86\lib\X11\lyx
  126.     attrib +r $(X11ROOT)\XFree86\lib\X11\lyx\doc\*
  127.     -rm -f $(LYX_DIR)/configure $(LYX_DIR)/Makefile*
  128.  
  129. clean:
  130.     $(RM) *.log chkconfig.sed chkconfig.vars reLyX/reLyX reLyX/reLyX.man
  131.  
  132. distclean:    clean
  133.     $(RM) Makefile $(BUILDINSTFILES)
  134.  
  135. bindist: reLyX/reLyX.man
  136.     (cd $(bindistdir)/share/$(PACKAGE) ; \
  137.     for i in $(BINDISTLINKS); do \
  138.       ln -s $(abssrcdir)/$$i $$i ; \
  139.     done)
  140.     (cd $(bindistdir)/bin ; \
  141.     if test -x $(absbuilddir)/reLyX/reLyX ; then \
  142.       ln -s $(absbuilddir)/reLyX/reLyX reLyX ; \
  143.     fi)
  144.     (cd $(bindistdir)/man/man$(MANSUFFIX) ; \
  145.     ln -s $(absbuilddir)/reLyX/reLyX.man reLyX.$(MANSUFFIX))
  146.