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 / forms / makefile < prev    next >
Makefile  |  1998-04-23  |  1KB  |  63 lines

  1. ###/* This file is part of
  2. ###* ======================================================
  3. ###*
  4. ###*           LyX, the High Level Word Processor
  5. ###*
  6. ###*           Copyright (C) 1995-97 The LyX Team
  7. ###*
  8. ###*======================================================*/
  9. ###
  10. ###
  11. ### Makefile by Lars Gullik Bj°nnes (larsbj@ifi.uio.no)
  12. ###  
  13.  
  14. SHELL = /bin/sh
  15. .SUFFIXES: .fd .c
  16.  
  17. # Various commands
  18. FDESIGN = fdesign
  19.  
  20. SRCS = bullet_forms.fd credits_form.fd form1.fd \
  21.     latexoptions.fd layout_forms.fd lyx.fd lyx_sendfax.fd math_forms.fd \
  22.     print_form.fd sp_form.fd
  23.  
  24. OBJS = bullet_forms.c credits_form.c form1.c \
  25.     latexoptions.c layout_forms.c lyx.c lyx_sendfax.c math_forms.c \
  26.     print_form.c sp_form.c
  27.  
  28. COBJS = bullet_forms.C credits_form.C form1.C \
  29.     latexoptions.C layout_forms.C lyx.C lyx_sendfax.C math_forms.C \
  30.     print_form.C sp_form.C
  31.  
  32. all:
  33.     @echo "This is a makefile intended for the maintainer only."
  34.     @echo "Only run it if you are absolutely sure about what you"
  35.     @echo "are doing."
  36.  
  37. c: $(OBJS)
  38.  
  39. d: c $(COBJS)
  40.  
  41. e: c
  42.     for hfil in *.h ; do \
  43.         if [ -f "$$hfil.patch" ] ; then \
  44.             (echo "Patching $$hfil with $$hfil.patch" ; \
  45.             patch -s $$hfil < $$hfil.patch) \
  46.         fi; \
  47.     done
  48.  
  49. updatesrc: d e
  50.     for fil in *.C *.h ; do cp $$fil ../src ; done
  51.  
  52. .fd.c:
  53.     $(FDESIGN) -convert $<
  54.  
  55. .c.C:
  56.     ./fdfix.sh $< $@
  57.  
  58. clean:
  59.     rm -f *.[hcC] *.bak
  60.  
  61. distclean: clean
  62.     rm -f *.orig *.rej *~
  63.