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-08-11 14:42:20 +00:00
|
|
|
|
form_document.fd \
|
2000-08-08 13:55:26 +00:00
|
|
|
|
form_graphics.fd \
|
2000-08-03 12:56:25 +00:00
|
|
|
|
form_index.fd \
|
2000-06-12 11:55:12 +00:00
|
|
|
|
form_preferences.fd \
|
2000-07-11 15:08:54 +00:00
|
|
|
|
form_print.fd \
|
2000-08-08 13:55:26 +00:00
|
|
|
|
form_ref.fd \
|
2000-07-27 08:55:59 +00:00
|
|
|
|
form_tabular.fd \
|
2000-08-01 17:33:32 +00:00
|
|
|
|
form_toc.fd \
|
2000-07-27 08:55:59 +00:00
|
|
|
|
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
|
2000-08-11 14:42:20 +00:00
|
|
|
|
@echo "Modifying header files using the instructions in fdfixh.sed";\
|
2000-06-12 11:55:12 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
.fd.c:
|
|
|
|
|
$(FDESIGN) -convert $<
|
|
|
|
|
|
|
|
|
|
.c.C:
|
2000-07-27 12:22:41 +00:00
|
|
|
|
${SHELL} ./fdfix.sh $< $@
|
2000-07-13 15:03:34 +00:00
|
|
|
|
rm $<
|
2000-08-11 14:42:20 +00:00
|
|
|
|
@if [ -f "$@.patch" ] ; then \
|
|
|
|
|
(echo "Patching $@ with $@.patch" ; \
|
|
|
|
|
patch -s $@ < $@.patch) \
|
|
|
|
|
fi;
|
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 ..
|