1 ###/* This file is part of
2 ###* ======================================================
4 ###* LyX, the High Level Word Processor
6 ###* Copyright (C) 1995-99 The LyX Team
8 ###*======================================================*/
11 ### Makefile by Lars Gullik Bjønnes (larsbj@ifi.uio.no)
20 SRCS = figure_form.fd print_form.fd
22 OBJS = figure_form.c print_form.c
24 COBJS = figure_form.C print_form.C
27 @echo "This is a makefile intended for the maintainer only."
28 @echo "Only run it if you are absolutely sure about what you"
36 # -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
38 # We need the callbacks to all be declared as: extern "C" void
40 # -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
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).
46 for hfil in *.h ; do \
47 if [ -f "$$hfil.patch" ] ; then \
48 (echo "Patching $$hfil with $$hfil.patch" ; \
49 patch $$hfil < $$hfil.patch) \
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; \
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 ; \
67 $(FDESIGN) -convert $<