]> git.lyx.org Git - features.git/blob - src/frontends/xforms/forms/makefile
Fix to the URL inset stuff
[features.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_tabular.fd \
27         form_url.fd
28
29
30 OBJS := $(SRCS:.fd=.c)
31
32 COBJS := $(SRCS:.fd=.C)
33
34 all:
35         @echo "This is a makefile intended for the maintainer only."
36         @echo "Only run it if you are absolutely sure about what you"
37         @echo "are doing."
38
39 c: $(OBJS)
40
41 d: c $(COBJS)
42
43
44 # Modify the header files using the instructions in fdfixh.sed
45 e: c
46         for hfil in *.h ; do \
47                 if [ -f "$$hfil.patch" ] ; then \
48                         (echo "Patching $$hfil with $$hfil.patch" ; \
49                         patch -s $$hfil < $$hfil.patch) \
50                 fi; \
51                 sed -f fdfixh.sed < $$hfil > $$hfil.tmp; \
52                 mv $$hfil.tmp $$hfil; \
53         done
54
55 updatesrc: d e
56         @echo >&2
57         @echo "Everythings been generated now.">&2
58         @echo "It's up to you to actually merge it into the respective">&2
59         @echo "implementations in the parent directory.  Most of the work">&2
60         @echo "simply involves cutting and pasting the FormXxxx::build()">&2
61         @echo "code into that forms FormXxxx.C file.  You'll also want to">&2
62         @echo "copy the FD_form... declaration from the header into the">&2
63         @echo "classes header file.">&2
64         @echo >&2
65
66 .fd.c:
67         $(FDESIGN) -convert $<
68
69 .c.C:
70         ${SHELL} ./fdfix.sh $< $@
71         rm $<
72
73 clean:
74         rm -f *.[hcC] *.bak
75
76 distclean: clean
77         rm -f *.orig *.rej *~
78
79 install: clean updatesrc
80         cp *.C *.h ..