2000-06-12 11:55:12 +00:00
|
|
|
|
###/* This file is part of
|
|
|
|
|
###* ======================================================
|
|
|
|
|
###*
|
|
|
|
|
###* LyX, the High Level Word Processor
|
|
|
|
|
###*
|
|
|
|
|
###* Copyright 1995 Matthias Ettrich
|
|
|
|
|
###* Copyright 1995-2000 The LyX Team
|
|
|
|
|
###*
|
|
|
|
|
###*======================================================*/
|
|
|
|
|
###
|
|
|
|
|
###
|
|
|
|
|
### Makefile by Lars Gullik Bj<42>nnes (larsbj@ifi.uio.no)
|
|
|
|
|
### Modified by Allan Rae <rae@lyx.org>
|
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
.SUFFIXES: .fd .c
|
|
|
|
|
|
|
|
|
|
# Various commands
|
|
|
|
|
FDESIGN = fdesign
|
|
|
|
|
|
2000-07-07 07:46:37 +00:00
|
|
|
|
SRCS := form_citation.fd \
|
|
|
|
|
form_copyright.fd \
|
2000-06-12 11:55:12 +00:00
|
|
|
|
form_preferences.fd \
|
2000-07-11 15:08:54 +00:00
|
|
|
|
form_print.fd \
|
2000-07-27 08:55:59 +00:00
|
|
|
|
form_tabular.fd \
|
|
|
|
|
form_url.fd
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OBJS := $(SRCS:.fd=.c)
|
|
|
|
|
|
|
|
|
|
COBJS := $(SRCS:.fd=.C)
|
|
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
@echo "This is a makefile intended for the maintainer only."
|
|
|
|
|
@echo "Only run it if you are absolutely sure about what you"
|
|
|
|
|
@echo "are doing."
|
|
|
|
|
|
|
|
|
|
c: $(OBJS)
|
|
|
|
|
|
|
|
|
|
d: c $(COBJS)
|
|
|
|
|
|
|
|
|
|
|
2000-07-13 15:03:34 +00:00
|
|
|
|
# Modify the header files using the instructions in fdfixh.sed
|
2000-06-12 11:55:12 +00:00
|
|
|
|
e: c
|
|
|
|
|
for hfil in *.h ; do \
|
|
|
|
|
if [ -f "$$hfil.patch" ] ; then \
|
|
|
|
|
(echo "Patching $$hfil with $$hfil.patch" ; \
|
|
|
|
|
patch -s $$hfil < $$hfil.patch) \
|
|
|
|
|
fi; \
|
2000-07-13 15:03:34 +00:00
|
|
|
|
sed -f fdfixh.sed < $$hfil > $$hfil.tmp; \
|
2000-06-12 11:55:12 +00:00
|
|
|
|
mv $$hfil.tmp $$hfil; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
updatesrc: d e
|
|
|
|
|
@echo >&2
|
|
|
|
|
@echo "Everythings been generated now.">&2
|
|
|
|
|
@echo "It's up to you to actually merge it into the respective">&2
|
|
|
|
|
@echo "implementations in the parent directory. Most of the work">&2
|
|
|
|
|
@echo "simply involves cutting and pasting the FormXxxx::build()">&2
|
|
|
|
|
@echo "code into that forms FormXxxx.C file. You'll also want to">&2
|
|
|
|
|
@echo "copy the FD_form... declaration from the header into the">&2
|
|
|
|
|
@echo "classes header file.">&2
|
|
|
|
|
@echo >&2
|
|
|
|
|
|
|
|
|
|
.fd.c:
|
|
|
|
|
$(FDESIGN) -convert $<
|
|
|
|
|
|
|
|
|
|
.c.C:
|
|
|
|
|
./fdfix.sh $< $@
|
2000-07-13 15:03:34 +00:00
|
|
|
|
rm $<
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -f *.[hcC] *.bak
|
|
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
rm -f *.orig *.rej *~
|
|
|
|
|
|
2000-07-11 15:08:54 +00:00
|
|
|
|
install: clean updatesrc
|
2000-07-07 07:46:37 +00:00
|
|
|
|
cp *.C *.h ..
|