]> git.lyx.org Git - lyx.git/blob - forms/makefile
Fixed getMaxWidth() in insetminipage if the width is a percentage and fixed
[lyx.git] / forms / makefile
1 ###/* This file is part of
2 ###* ======================================================
3 ###*
4 ###*           LyX, the High Level Word Processor
5 ###*
6 ###*           Copyright (C) 1995-99 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 = figure_form.fd print_form.fd
21
22 OBJS = figure_form.c print_form.c
23
24 COBJS = figure_form.C print_form.C
25
26 all:
27         @echo "This is a makefile intended for the maintainer only."
28         @echo "Only run it if you are absolutely sure about what you"
29         @echo "are doing."
30
31 c: $(OBJS)
32
33 d: c $(COBJS)
34
35 #
36 # -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
37 #
38 # We need the callbacks to all be declared as:  extern "C" void
39 #
40 # -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
41 #
42 # Clean up the line with the date in it.  This means we'll have fewer false
43 # updates (where the only thing that changed was the date).
44 #
45 e: c
46         for hfil in *.h ; do \
47                 if [ -f "$$hfil.patch" ] ; then \
48                         (echo "Patching $$hfil with $$hfil.patch" ; \
49                         patch $$hfil < $$hfil.patch) \
50                 fi; \
51                 sed < $$hfil > $$hfil.tmp \
52                         -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/' \
53                         -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
54                 mv $$hfil.tmp $$hfil; \
55         done
56
57 updatesrc: d e
58         @echo
59         @echo "Be careful with gui-indep forms.  Make sure they have been">&2
60         @echo "removed from the files here otherwise we'll get junk code ">&2
61         @echo "and errors at compile time.">&2
62         for fil in *.C *.h ; do \
63                 cmp -s $$fil ../src/$$fil || cp $$fil ../src ; \
64         done
65
66 .fd.c:
67         $(FDESIGN) -convert $<
68
69 .c.C:
70         ./fdfix.sh $< $@
71
72 clean:
73         rm -f *.[hcC] *.bak
74
75 distclean: clean
76         rm -f *.orig *.rej *~