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