1999-09-27 18:44:28 +00:00
|
|
|
|
###/* This file is part of
|
|
|
|
|
###* ======================================================
|
|
|
|
|
###*
|
|
|
|
|
###* LyX, the High Level Word Processor
|
|
|
|
|
###*
|
|
|
|
|
###* Copyright (C) 1995-99 The LyX Team
|
|
|
|
|
###*
|
|
|
|
|
###*======================================================*/
|
|
|
|
|
###
|
|
|
|
|
###
|
|
|
|
|
### Makefile by Lars Gullik Bj<42>nnes (larsbj@ifi.uio.no)
|
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
.SUFFIXES: .fd .c
|
|
|
|
|
|
|
|
|
|
# Various commands
|
|
|
|
|
FDESIGN = fdesign
|
|
|
|
|
|
2000-09-26 13:54:57 +00:00
|
|
|
|
SRCS = credits_form.fd form1.fd \
|
2000-07-18 11:06:04 +00:00
|
|
|
|
log_form.fd layout_forms.fd lyx.fd lyx_sendfax.fd math_forms.fd \
|
1999-09-27 18:44:28 +00:00
|
|
|
|
print_form.fd sp_form.fd
|
|
|
|
|
|
2000-09-26 13:54:57 +00:00
|
|
|
|
OBJS = credits_form.c form1.c \
|
2000-07-18 11:06:04 +00:00
|
|
|
|
log_form.c layout_forms.c lyx.c lyx_sendfax.c math_forms.c \
|
1999-09-27 18:44:28 +00:00
|
|
|
|
print_form.c sp_form.c
|
|
|
|
|
|
2000-09-26 13:54:57 +00:00
|
|
|
|
COBJS = credits_form.C form1.C \
|
2000-07-18 11:06:04 +00:00
|
|
|
|
log_form.C layout_forms.C lyx.C lyx_sendfax.C math_forms.C \
|
1999-09-27 18:44:28 +00:00
|
|
|
|
print_form.C sp_form.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-06-12 11:27:15 +00:00
|
|
|
|
#
|
|
|
|
|
# -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
|
|
|
|
|
#
|
|
|
|
|
# We need the callbacks to all be declared as: extern "C" void
|
|
|
|
|
#
|
2000-08-14 05:24:35 +00:00
|
|
|
|
# -e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
|
|
|
|
|
#
|
|
|
|
|
# Clean up the line with the date in it. This means we'll have fewer false
|
|
|
|
|
# updates (where the only thing that changed was the date).
|
|
|
|
|
#
|
1999-09-27 18:44:28 +00:00
|
|
|
|
e: c
|
|
|
|
|
for hfil in *.h ; do \
|
|
|
|
|
if [ -f "$$hfil.patch" ] ; then \
|
|
|
|
|
(echo "Patching $$hfil with $$hfil.patch" ; \
|
2000-09-26 13:54:57 +00:00
|
|
|
|
patch --verbose $$hfil < $$hfil.patch) \
|
1999-09-27 18:44:28 +00:00
|
|
|
|
fi; \
|
2000-06-12 11:27:15 +00:00
|
|
|
|
sed < $$hfil > $$hfil.tmp \
|
2000-08-14 05:24:35 +00:00
|
|
|
|
-e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/' \
|
|
|
|
|
-e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
|
2000-06-12 11:27:15 +00:00
|
|
|
|
mv $$hfil.tmp $$hfil; \
|
1999-09-27 18:44:28 +00:00
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
updatesrc: d e
|
2000-06-12 11:27:15 +00:00
|
|
|
|
@echo
|
|
|
|
|
@echo "Beware some files may be installed in the wrong directory!" >&2
|
|
|
|
|
@echo "In particular be careful with gui-indep forms. Make sure">&2
|
|
|
|
|
@echo "they have been removed from the files here otherwise we'll">&2
|
|
|
|
|
@echo "get junk code and errors at compile time.">&2
|
|
|
|
|
for fil in *.C *.h ; do \
|
|
|
|
|
if [ $$fil = "math_forms.C" -o $$fil = "math_forms.h" ]; then \
|
2000-09-26 13:54:57 +00:00
|
|
|
|
cmp -s $$fil ../src/mathed/$$fil || cp $$fil ../src/mathed ; \
|
2000-06-12 11:27:15 +00:00
|
|
|
|
else \
|
2000-09-26 13:54:57 +00:00
|
|
|
|
cmp -s $$fil ../src/$$fil || cp $$fil ../src ; \
|
2000-06-12 11:27:15 +00:00
|
|
|
|
fi \
|
|
|
|
|
done
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
.fd.c:
|
|
|
|
|
$(FDESIGN) -convert $<
|
|
|
|
|
|
|
|
|
|
.c.C:
|
|
|
|
|
./fdfix.sh $< $@
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -f *.[hcC] *.bak
|
|
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
rm -f *.orig *.rej *~
|