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
2002-05-11 19:52:56 +00:00

48 lines
1.6 KiB
Makefile

# Copyright (c) M. Broek, 1997-2001
# $Id$
include ../Makefile.global
OTHER = Makefile header.txt footer.txt menus-le.tar menus-be.tar txtfiles.tar templates.tar
#####################################################################################
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 \
if [ "${HOSTTYPE}" = "i386" ] || [ "${MACHTYPE}" = "i386" ]; then \
tar xfC menus-le.tar ${PREFIX}/english/menus ; \
echo "Installing default english menus for a Little-Endian (i386) system" ; \
else \
tar xfC menus-be.tar ${PREFIX}/english/menus ; \
echo "Installing default english menus for a Big-Endian (Alpha/Sparc etc.) system" ; \
fi \
fi
@if [ ! -f ${PREFIX}/english/txtfiles/main.ans ]; then \
tar xfC txtfiles.tar ${PREFIX}/english/txtfiles ; \
echo "Installing default english txtfiles" ; \
fi
@if [ ! -f ${PREFIX}/english/macro/html.tic ]; then \
tar xfC templates.tar ${PREFIX}/english/macro ; \
echo "Installing default english macro files" ; \
fi
clean:
rm -f filelist Makefile.bak
filelist: Makefile
BASE=`pwd`; \
BASE=`basename $${BASE}`; \
(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
all:
depend: