mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
b28c9e2f93
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2291 a592a061-630c-0410-9148-cb99ea01b6c8
77 lines
1.7 KiB
Makefile
77 lines
1.7 KiB
Makefile
###/* This file is part of
|
|
###* ======================================================
|
|
###*
|
|
###* LyX, the High Level Word Processor
|
|
###*
|
|
###* Copyright (C) 1995-99 The LyX Team
|
|
###*
|
|
###*======================================================*/
|
|
###
|
|
###
|
|
### Makefile by Lars Gullik Bjønnes (larsbj@ifi.uio.no)
|
|
###
|
|
|
|
SHELL = /bin/sh
|
|
.SUFFIXES: .fd .c
|
|
|
|
# Various commands
|
|
FDESIGN = fdesign
|
|
|
|
SRCS = figure_form.fd print_form.fd
|
|
|
|
OBJS = figure_form.c print_form.c
|
|
|
|
COBJS = figure_form.C print_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)
|
|
|
|
#
|
|
# -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
|
|
#
|
|
# We need the callbacks to all be declared as: extern "C" void
|
|
#
|
|
# -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).
|
|
#
|
|
e: c
|
|
for hfil in *.h ; do \
|
|
if [ -f "$$hfil.patch" ] ; then \
|
|
(echo "Patching $$hfil with $$hfil.patch" ; \
|
|
patch $$hfil < $$hfil.patch) \
|
|
fi; \
|
|
sed < $$hfil > $$hfil.tmp \
|
|
-e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/' \
|
|
-e 's,\(generated with fdesign\)\(.*\)\(\*\*/\),\1 \3,';\
|
|
mv $$hfil.tmp $$hfil; \
|
|
done
|
|
|
|
updatesrc: d e
|
|
@echo
|
|
@echo "Be careful with gui-indep forms. Make sure they have been">&2
|
|
@echo "removed from the files here otherwise we'll get junk code ">&2
|
|
@echo "and errors at compile time.">&2
|
|
for fil in *.C *.h ; do \
|
|
cmp -s $$fil ../src/$$fil || cp $$fil ../src ; \
|
|
done
|
|
|
|
.fd.c:
|
|
$(FDESIGN) -convert $<
|
|
|
|
.c.C:
|
|
./fdfix.sh $< $@
|
|
|
|
clean:
|
|
rm -f *.[hcC] *.bak
|
|
|
|
distclean: clean
|
|
rm -f *.orig *.rej *~
|