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
|
|
|
|
|
2002-07-26 20:28:49 +00:00
|
|
|
SRCS = endian.c
|
|
|
|
HDRS = endian.h
|
|
|
|
OBJS = endian.o
|
2002-12-28 16:08:24 +00:00
|
|
|
OTHER = Makefile header.txt footer.txt menus-le.tar menus-be.tar \
|
2003-01-19 11:30:27 +00:00
|
|
|
txtfiles-en.tar templates-en.tar \
|
|
|
|
txtfiles-es.tar templates-es.tar \
|
|
|
|
templates-de.tar \
|
|
|
|
templates-nl.tar
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
#####################################################################################
|
|
|
|
|
2002-07-26 20:28:49 +00:00
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
|
|
|
|
|
|
|
|
all: endian
|
|
|
|
|
|
|
|
endian: ${OBJS} ${LIBS}
|
|
|
|
${CC} -o endian ${OBJS} ${LIBS}
|
|
|
|
strip endian
|
|
|
|
|
|
|
|
install: all
|
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
|
|
|
|
@if [ ! -f ${PREFIX}/english/menus/main.mnu ]; then \
|
2002-07-26 21:12:19 +00:00
|
|
|
tar xfC menus-`./endian`.tar ${PREFIX}/english/menus ; \
|
|
|
|
echo "tar xfC menus-`./endian`.tar ${PREFIX}/english/menus" ; \
|
|
|
|
echo "Installed default english menus" ; \
|
2001-11-03 21:43:44 +00:00
|
|
|
fi
|
|
|
|
@if [ ! -f ${PREFIX}/english/txtfiles/main.ans ]; then \
|
2002-12-28 12:10:12 +00:00
|
|
|
tar xfC txtfiles-en.tar ${PREFIX}/english/txtfiles ; \
|
2002-12-30 22:13:33 +00:00
|
|
|
echo "Installed default English txtfiles" ; \
|
2001-11-03 21:43:44 +00:00
|
|
|
fi
|
2002-05-11 19:52:56 +00:00
|
|
|
@if [ ! -f ${PREFIX}/english/macro/html.tic ]; then \
|
2002-12-28 12:10:12 +00:00
|
|
|
tar xfC templates-en.tar ${PREFIX}/english/macro ; \
|
2002-12-30 22:13:33 +00:00
|
|
|
echo "Installed default English macro files" ; \
|
|
|
|
fi
|
2003-01-19 11:30:27 +00:00
|
|
|
@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
|
2002-12-30 22:13:33 +00:00
|
|
|
@if [ ! -f ${PREFIX}/german/macro/html.tic ]; then \
|
|
|
|
tar xfC templates-de.tar ${PREFIX}/german/macro ; \
|
|
|
|
echo "Installed default German macro files" ; \
|
2002-05-11 19:52:56 +00:00
|
|
|
fi
|
2003-01-12 21:46:22 +00:00
|
|
|
@if [ ! -f ${PREFIX}/dutch/macro/html.tic ]; then \
|
|
|
|
tar xfC templates-nl.tar ${PREFIX}/dutch/macro ; \
|
|
|
|
echo "Installed default Dutch macro files" ; \
|
|
|
|
fi
|
2001-11-03 21:43:44 +00:00
|
|
|
|
|
|
|
clean:
|
2002-07-26 20:28:49 +00:00
|
|
|
rm -f endian *.o *.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
|
|
|
|
endian.o: endian.h
|
|
|
|
# End of generated dependencies
|