|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 2539 (0x9eb)
Types: TextFile
Names: »Makefile«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z«
└─⟦bcd2bc73f⟧
└─⟦this⟧ »pd/binmail/Makefile«
#!/bin/make -f
# @(#)Makefile 1.3 3/12/89 13:34:52
#
# Makefile for binmail
#
# IMPORTANT NOTE: Due to potential problems with installing binmail,
# the binmail in not build/installed by higher level
# makefiles. Read LMAIL comments in EDITME-dist
# and build/install binmail by hand if you want to.
SHELL=/bin/sh
MAKE=make
GET=sccs get
AR=ar
LINT=lint
CC=cc
CLEAN=sccs clean
MK=${MAKE} -${MAKEFLAGS}
SRC_PREFIX=
MKDEPEND=${ROOT}/conf/lib/mkdepend.sh
MKDEFS=${ROOT}/conf/lib/mkdefs.sh
CHECKDEFS=${ROOT}/conf/lib/checkdefs.sh
MKDIRS=${ROOT}/conf/lib/mkdefs.sh
INST=${ROOT}/conf/lib/inst.sh
INSTM=${ROOT}/conf/lib/instm.sh
DEFS_SH=defs.sh
DEFS_H=defs.h
DEFS_SED=defs.sed
CFLAGS=$$CFLAGS
LIBS=$$LIBS
ROOT=../..
SMAILSRC=${ROOT}/src
TARGETS=binmail
CSRC=binmail.c
MISCSRC=Makefile
SRC=${CSRC} ${MISCSRC}
OBJ=binmail.o
all: ${TARGETS}
binmail: binmail.o ${DEFS_SH}
. ./${DEFS_SH}; if [ -z "$$LMAIL" ]; then \
echo "LMAIL not defined in EDITME, can not make binmail"; \
exit 1; \
fi
. ./${DEFS_SH}; ${CC} ${CFLAGS} binmail.o -o binmail ${LIBS}
binmail.o: binmail.c ${DEFS_SH}
@. ./${DEFS_SH}; \
case "$$LMAIL" in \
'') echo "LMAIL not defined in EDITME, can not make binmail"; \
exit 0;; \
esac; \
echo ${CC} ${CFLAGS} -c binmail.c; \
${CC} ${CFLAGS} -c binmail.c
sources: ${SRC}
${SRC}:
${GET} $@
${DEFS_H} ${DEFS_SH} ${DEFS_SED}: ${MISCSRC}
ROOT=${ROOT} ${SHELL} ${MKDEFS}
names:
@for i in ${SRC}; do echo ${SRC_PREFIX}$$i; done
depend local_depend: ${SRC} check_defs
${SHELL} ${MKDEPEND} Makefile ${CSRC}
. ./${DEFS_SH}; echo "$$DEFS_DEPEND" >> Makefile
chmod -w Makefile
check_defs:
ROOT=${ROOT} ${SHELL} ${CHECKDEFS}
# install with care!
#
install: ${UTIL_TARGETS} ${DEFS_SH}
@. ./${DEFS_SH}; \
case "$$DONT_INSTALL" in \
?*) echo Testing ... install ignored; exit 0;;\
esac; \
case "$$LMAIL" in \
'') echo LMAIL not defined in EDITME, binmail not installed; \
exit 0;;\
esac; \
sh -c "if [ -f $$LMAIL ]; then \
echo $$LMAIL already exists, it is the old /bin/mail program'?'; \
echo perhaps you should copy $$LMAIL back to /bin/mail'?'; \
echo install not done to be on the safe side; \
else \
echo ${SHELL} ${INST} -m 0555 binmail $$LMAIL; \
${SHELL} ${INST} -m 0555 binmail $$LMAIL; \
fi"
clean:
rm -f ${DEFS_SH} ${DEFS_H} ${DEFS_SED}
rm -f ${OBJ} core a.out
clobber: clean
rm -f ${TARGETS}
nuke: clobber
-${CLEAN}
-${GET} Makefile
# DO NOT REMOVE THIS LINE, OR "make depend" WILL NOT WORK