1 ###/* This file is part of
2 ###* ======================================================
4 ###* LyX, the High Level Word Processor
6 ###* Copyright 1995 Matthias Ettrich
7 ###* Copyright 1995-2000 The LyX Team
9 ###*======================================================*/
12 ### Makefile by Lars Gullik Bjønnes (larsbj@ifi.uio.no)
13 ### Modified by Allan Rae <rae@lyx.org>
22 SRCS := form_citation.fd \
29 OBJS := $(SRCS:.fd=.c)
31 COBJS := $(SRCS:.fd=.C)
34 @echo "This is a makefile intended for the maintainer only."
35 @echo "Only run it if you are absolutely sure about what you"
43 # -e 's/\([^ ]* \*\)\([^ ]*\)/\1 \2/'
45 # Make declarations like "void *cdata;" into "void * cdata;"
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) \
53 sed < $$hfil > $$hfil.tmp \
54 -e 's/\(extern \)\(.*\)/\1 "C" \2/' \
55 -e '/create_form_/d' ; \
56 mv $$hfil.tmp $$hfil; \
61 @echo "Everythings been generated now.">&2
62 @echo "It's up to you to actually merge it into the respective">&2
63 @echo "implementations in the parent directory. Most of the work">&2
64 @echo "simply involves cutting and pasting the FormXxxx::build()">&2
65 @echo "code into that forms FormXxxx.C file. You'll also want to">&2
66 @echo "copy the FD_form... declaration from the header into the">&2
67 @echo "classes header file.">&2
71 $(FDESIGN) -convert $<
82 install: clean updatesrc