]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/forms/makefile
Baruch's graphics-patch + minipage-support in tabular-cells.
[lyx.git] / src / frontends / xforms / forms / makefile
1 ###/* This file is part of
2 ###* ======================================================
3 ###*
4 ###*           LyX, the High Level Word Processor
5 ###*
6 ###*           Copyright 1995 Matthias Ettrich
7 ###*           Copyright 1995-2000 The LyX Team
8 ###*
9 ###*======================================================*/
10 ###
11 ###
12 ### Makefile by Lars Gullik Bjønnes (larsbj@ifi.uio.no)
13 ### Modified by Allan Rae <rae@lyx.org>
14 ###
15
16 SHELL = /bin/sh
17 .SUFFIXES: .fd .c
18
19 # Various commands
20 FDESIGN = fdesign
21
22 SRCS := form_citation.fd \
23         form_copyright.fd \
24         form_preferences.fd \
25         form_print.fd \
26         form_graphics.fd \
27         form_tabular.fd \
28         form_url.fd
29
30
31 OBJS := $(SRCS:.fd=.c)
32
33 COBJS := $(SRCS:.fd=.C)
34
35 all:
36         @echo "This is a makefile intended for the maintainer only."
37         @echo "Only run it if you are absolutely sure about what you"
38         @echo "are doing."
39
40 c: $(OBJS)
41
42 d: c $(COBJS)
43
44
45 # Modify the header files using the instructions in fdfixh.sed
46 e: c
47         for hfil in *.h ; do \
48                 if [ -f "$$hfil.patch" ] ; then \
49                         (echo "Patching $$hfil with $$hfil.patch" ; \
50                         patch -s $$hfil < $$hfil.patch) \
51                 fi; \
52                 sed -f fdfixh.sed < $$hfil > $$hfil.tmp; \
53                 mv $$hfil.tmp $$hfil; \
54         done
55
56 updatesrc: d e
57
58 .fd.c:
59         $(FDESIGN) -convert $<
60
61 .c.C:
62         ${SHELL} ./fdfix.sh $< $@
63         rm $<
64
65 clean:
66         rm -f *.[hcC] *.bak
67
68 distclean: clean
69         rm -f *.orig *.rej *~
70
71 install: clean updatesrc
72         cp *.C *.h ..