This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/examples/Makefile
2003-02-12 20:56:57 +00:00

97 lines
3.2 KiB
Makefile

# Copyright (c) M. Broek, 1997-2001
# $Id$
include ../Makefile.global
OTHER = Makefile header.txt footer.txt \
menus-en.tar txtfiles-en.tar templates-en.tar \
menus-es.tar txtfiles-es.tar templates-es.tar \
templates-de.tar \
templates-nl.tar
#####################################################################################
.c.o:
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
all:
install:
@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
@if [ ! -f ${ETCDIR}/footer.txt ]; then \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 footer.txt ${ETCDIR} ; \
echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 footer.txt ${ETCDIR}" ; \
fi
@if [ ! -f ${PREFIX}/english/menus/main.mnu ]; then \
tar xfC menus-en.tar ${PREFIX}/english/menus ; \
echo "tar xfC menus-en.tar ${PREFIX}/english/menus" ; \
echo "Installed default English menus" ; \
fi
@if [ ! -f ${PREFIX}/english/txtfiles/main.ans ]; then \
tar xfC txtfiles-en.tar ${PREFIX}/english/txtfiles ; \
echo "Installed default English txtfiles" ; \
fi
@if [ ! -f ${PREFIX}/english/macro/html.tic ]; then \
tar xfC templates-en.tar ${PREFIX}/english/macro ; \
echo "Installed default English macro files" ; \
fi
@if [ ! -f ${PREFIX}/spanish/txtfiles/main.ans ]; then \
tar xfC txtfiles-es.tar ${PREFIX}/spanish/txtfiles ; \
echo "Installed default Spanish txtfiles" ; \
fi
@if [ ! -f ${PREFIX}/spanish/macro/html.tic ]; then \
tar xfC templates-es.tar ${PREFIX}/spanish/macro ; \
echo "Installed default Spanish macro files" ; \
fi
@if [ ! -f ${PREFIX}/spanish/menus/main.mnu ]; then \
tar xfC menus-es.tar ${PREFIX}/spanish/menus ; \
echo "tar xfC menus-es.tar ${PREFIX}/spanish/menus" ; \
echo "Installed default Spanish menus" ; \
fi
@if [ ! -f ${PREFIX}/german/macro/html.tic ]; then \
tar xfC templates-de.tar ${PREFIX}/german/macro ; \
echo "Installed default German macro files" ; \
fi
@if [ ! -f ${PREFIX}/dutch/macro/html.tic ]; then \
tar xfC templates-nl.tar ${PREFIX}/dutch/macro ; \
echo "Installed default Dutch macro files" ; \
fi
clean:
rm -f *.h~ *.c~ core filelist Makefile.bak
filelist: Makefile
BASE=`pwd`; \
BASE=`basename $${BASE}`; \
(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
depend:
@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
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
# Dependencies generated by make depend
# End of generated dependencies