2001-11-03 21:43:44 +00:00
|
|
|
# Copyright (c) M. Broek, 1997-2001
|
2001-11-03 22:45:03 +00:00
|
|
|
# $Id$
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
include ../Makefile.global
|
|
|
|
|
2003-02-12 20:56:57 +00:00
|
|
|
OTHER = Makefile header.txt footer.txt \
|
|
|
|
menus-en.tar txtfiles-en.tar templates-en.tar \
|
2003-02-05 21:06:00 +00:00
|
|
|
menus-es.tar txtfiles-es.tar templates-es.tar \
|
2003-01-19 11:30:27 +00:00
|
|
|
templates-de.tar \
|
|
|
|
templates-nl.tar
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
#####################################################################################
|
|
|
|
|
2002-07-26 20:28:49 +00:00
|
|
|
.c.o:
|
2007-05-27 11:25:00 +00:00
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
2002-07-26 20:28:49 +00:00
|
|
|
|
2003-02-12 20:56:57 +00:00
|
|
|
all:
|
2002-07-26 20:28:49 +00:00
|
|
|
|
2003-08-03 20:23:48 +00:00
|
|
|
help:
|
|
|
|
@echo "Installation help for the example files"
|
|
|
|
@echo ""
|
|
|
|
@echo "make install Installs everything not yet installed"
|
|
|
|
@echo "make install-force Reinstalls all menus, textfiles and macros"
|
|
|
|
@echo ""
|
|
|
|
@echo "make english-menus Force (re)installation of English menus"
|
|
|
|
@echo "make english-txtfiles Force (re)installation of English textfiles"
|
|
|
|
@echo "make english-macros Force (re)installation of English macros"
|
2004-07-23 20:24:11 +00:00
|
|
|
@echo "make english Force (re)installation of all English files"
|
|
|
|
@echo ""
|
|
|
|
@echo "make macros Force (re)installation of all macro templates"
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo ""
|
2005-09-09 18:33:24 +00:00
|
|
|
@echo "You may replace the word english above with spanish galego german dutch"
|
2003-08-03 20:23:48 +00:00
|
|
|
|
|
|
|
english-menus:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC menus-en.tar ${PREFIX}/share/int/menus/en
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default English menus"
|
|
|
|
|
|
|
|
english-txtfiles:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC txtfiles-en.tar ${PREFIX}/share/int/txtfiles/en
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default English txtfiles"
|
|
|
|
|
|
|
|
english-macros:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC templates-en.tar ${PREFIX}/share/int/macro/en
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default English macro files"
|
|
|
|
|
|
|
|
english: english-menus english-macros english-txtfiles
|
|
|
|
|
|
|
|
|
|
|
|
spanish-menus:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC menus-es.tar ${PREFIX}/share/int/menus/es
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default Spanish menus"
|
|
|
|
|
|
|
|
spanish-txtfiles:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC txtfiles-es.tar ${PREFIX}/share/int/txtfiles/es
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default Spanish txtfiles"
|
|
|
|
|
|
|
|
spanish-macros:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC templates-es.tar ${PREFIX}/share/int/macro/es
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default Spanish macro files"
|
|
|
|
|
|
|
|
spanish: spanish-menus spanish-txtfiles spanish-macros
|
|
|
|
|
|
|
|
|
|
|
|
german-macros:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC templates-de.tar ${PREFIX}/share/int/macro/de
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default German macro files"
|
|
|
|
|
|
|
|
german: german-macros
|
|
|
|
|
|
|
|
|
|
|
|
dutch-macros:
|
2007-02-17 12:14:16 +00:00
|
|
|
@tar xfC templates-nl.tar ${PREFIX}/share/int/macro/nl
|
2003-08-03 20:23:48 +00:00
|
|
|
@echo "Installed default Dutch macro files"
|
|
|
|
|
|
|
|
dutch: dutch-macros
|
|
|
|
|
|
|
|
galego:
|
|
|
|
|
|
|
|
|
2005-09-09 18:33:24 +00:00
|
|
|
install-force: english spanish dutch german galego
|
2003-08-03 20:23:48 +00:00
|
|
|
|
2004-07-23 20:24:11 +00:00
|
|
|
macros: english-macros spanish-macros german-macros dutch-macros
|
|
|
|
|
2002-07-26 20:28:49 +00:00
|
|
|
|
2003-02-12 20:56:57 +00:00
|
|
|
install:
|
2002-01-12 20:29:38 +00:00
|
|
|
@if [ ! -f ${ETCDIR}/header.txt ]; then \
|
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 header.txt ${ETCDIR}" ; \
|
|
|
|
fi
|
2001-11-03 21:43:44 +00:00
|
|
|
@if [ ! -f ${ETCDIR}/footer.txt ]; then \
|
2002-01-12 20:29:38 +00:00
|
|
|
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 footer.txt ${ETCDIR} ; \
|
|
|
|
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 footer.txt ${ETCDIR}" ; \
|
2001-11-03 21:43:44 +00:00
|
|
|
fi
|
2007-02-17 12:14:16 +00:00
|
|
|
@if [ ! -f ${PREFIX}/share/int/menus/en/main.mnu ]; then ${MAKE} -s english-menus ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/txtfiles/en/main.ans ]; then ${MAKE} -s english-txtfiles ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/macro/en/html.tic ]; then ${MAKE} -s english-macros ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/menus/es/main.mnu ]; then ${MAKE} -s spanish-menus ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/txtfiles/es/main.ans ]; then ${MAKE} -s spanish-txtfiles ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/macro/es/html.tic ]; then ${MAKE} -s spanish-macros ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/macro/es/html.tic ]; then ${MAKE} -s german-macros ; fi
|
|
|
|
@if [ ! -f ${PREFIX}/share/int/macro/es/html.tic ]; then ${MAKE} -s dutch-macros ; fi
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
clean:
|
2003-02-12 20:56:57 +00:00
|
|
|
rm -f *.h~ *.c~ core filelist Makefile.bak
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
filelist: Makefile
|
|
|
|
BASE=`pwd`; \
|
|
|
|
BASE=`basename $${BASE}`; \
|
2002-07-26 21:12:19 +00:00
|
|
|
(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
depend:
|
2002-07-26 20:28:49 +00:00
|
|
|
@rm -f Makefile.bak; \
|
|
|
|
mv Makefile Makefile.bak; \
|
|
|
|
sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \
|
|
|
|
${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \
|
|
|
|
>>Makefile; \
|
|
|
|
${ECHO} '# Dependencies generated by make depend' >>Makefile; \
|
|
|
|
for f in ${SRCS}; \
|
|
|
|
do \
|
|
|
|
${ECHO} "Dependencies for $$f:\c"; \
|
|
|
|
${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \
|
|
|
|
for h in `sed -n -e \
|
|
|
|
's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \
|
|
|
|
do \
|
|
|
|
${ECHO} " $$h\c"; \
|
|
|
|
${ECHO} " $$h\c" >>Makefile; \
|
|
|
|
done; \
|
|
|
|
${ECHO} " done."; \
|
|
|
|
${ECHO} "" >>Makefile; \
|
|
|
|
done; \
|
|
|
|
${ECHO} '# End of generated dependencies' >>Makefile
|
2001-11-03 21:43:44 +00:00
|
|
|
|
2002-07-26 20:28:49 +00:00
|
|
|
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
|
|
|
|
# Dependencies generated by make depend
|
|
|
|
# End of generated dependencies
|