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 = bibforms.fd credits_form.fd form1.fd include_form.fd \
21 log_form.fd lyx.fd math_forms.fd \
22 print_form.fd sp_form.fd
24 OBJS = bibforms.c credits_form.c form1.c include_form.c \
25 log_form.c lyx.c math_forms.c \
26 print_form.c sp_form.c
28 COBJS = bibforms.C credits_form.C form1.C include_form.C \
29 log_form.C lyx.C math_forms.C \
30 print_form.C sp_form.C
33 @echo "This is a makefile intended for the maintainer only."
34 @echo "Only run it if you are absolutely sure about what you"
42 # -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
44 # We need the callbacks to all be declared as: extern "C" void
46 # -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
48 # Clean up the line with the date in it. This means we'll have fewer false
49 # updates (where the only thing that changed was the date).
52 for hfil in *.h ; do \
53 if [ -f "$$hfil.patch" ] ; then \
54 (echo "Patching $$hfil with $$hfil.patch" ; \
55 patch $$hfil < $$hfil.patch) \
57 sed < $$hfil > $$hfil.tmp \
58 -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/' \
59 -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
60 mv $$hfil.tmp $$hfil; \
65 @echo "Beware some files may be installed in the wrong directory!" >&2
66 @echo "In particular be careful with gui-indep forms. Make sure">&2
67 @echo "they have been removed from the files here otherwise we'll">&2
68 @echo "get junk code and errors at compile time.">&2
69 for fil in *.C *.h ; do \
70 if [ $$fil = "math_forms.C" -o $$fil = "math_forms.h" ]; then \
71 cmp -s $$fil ../src/mathed/$$fil || cp $$fil ../src/mathed ; \
73 cmp -s $$fil ../src/$$fil || cp $$fil ../src ; \
78 $(FDESIGN) -convert $<