]> git.lyx.org Git - features.git/blob - src/frontends/xforms/forms/makefile
Implemented new Layout-Document in GUII and a few small fixes.
[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_document.fd \
25         form_graphics.fd \
26         form_index.fd \
27         form_preferences.fd \
28         form_print.fd \
29         form_ref.fd \
30         form_tabular.fd \
31         form_toc.fd \
32         form_url.fd
33
34
35 OBJS := $(SRCS:.fd=.c)
36
37 COBJS := $(SRCS:.fd=.C)
38
39 all:
40         @echo "This is a makefile intended for the maintainer only."
41         @echo "Only run it if you are absolutely sure about what you"
42         @echo "are doing."
43
44 c: $(OBJS)
45
46 d: c $(COBJS)
47
48
49 # Modify the header files using the instructions in fdfixh.sed
50 e: c
51         @echo "Modifying header files using the instructions in fdfixh.sed";\
52         for hfil in *.h ; do \
53                 if [ -f "$$hfil.patch" ] ; then \
54                         (echo "Patching $$hfil with $$hfil.patch" ; \
55                         patch -s $$hfil < $$hfil.patch) \
56                 fi; \
57                 sed -f fdfixh.sed < $$hfil > $$hfil.tmp; \
58                 mv $$hfil.tmp $$hfil; \
59         done
60
61 updatesrc: d e
62
63 .fd.c:
64         $(FDESIGN) -convert $<
65
66 .c.C:
67         ${SHELL} ./fdfix.sh $< $@
68         rm $<
69         @if [ -f "$@.patch" ] ; then \
70                 (echo "Patching $@ with $@.patch" ; \
71                 patch -s $@ < $@.patch) \
72         fi;
73
74 clean:
75         rm -f *.[hcC] *.bak
76
77 distclean: clean
78         rm -f *.orig *.rej *~
79
80 install: clean updatesrc
81         cp *.C *.h ..