echo "installing $(MANDIR)/$$page"; \
$(RM) $(MANDIR)/$$page; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$page.$(TMP_SUFFIX) $(MANDIR)/$$page; \
- if [ -f "$(srcdir)/$$page.links" ]; then \
+ if test -f "$(srcdir)/$$page.links" ; then \
for link in `$(CAT) $(srcdir)/$$page.links`; do \
echo "installing $(MANDIR)/$$link as link to $$page"; \
$(LN_S) -f $$page $(MANDIR)/$$link; \
MAKE=Makefile # default makefile name is "Makefile"
NOSLASH="no" # by default, / dependencies are included
-CC=${CC_MKDEP-${CC-cc}} # default compiler is cc
-: ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies
SRCDIR=""
SED=cat
+: ${CC=cc}
+: ${CC_MKDEP=$CC}
+: ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies
+
while :
do case "$1" in
# the -s flag removes dependencies to files that begin with /
# -c allows you to select a compiler to use (default is cc)
-c)
- [ -z "$CC_MKDEP" ] && CC=$2
+ test -z "$CC_MKDEP" && CC_MKDEP=$2
shift; shift ;;
# the -p flag produces "program: program.c" style dependencies
esac
done
-if [ $# = 0 ] ; then
+if test $# = 0 ; then
echo 'usage: mkdep [-p] [-s] [-c cc] [-f makefile] [-d srcdir] [flags] file ...'
exit 1
fi
-if [ ! -w $MAKE ]; then
+if test ! -w $MAKE ; then
echo "mkdep: no writeable file \"$MAKE\""
exit 1
fi
_EOF_
-$CC $CC_MKDEP_FLAGS $files | \
+$CC_MKDEP $CC_MKDEP_FLAGS $files | \
sed -e 's; \./; ;g' | \
$SED > $TMP.sed
# dont pipe to awk. SGI awk wants a filename as argument.
##
all-common: FORCE
- @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ @if test "$(BUILD_SRV)" = "yes" ; then \
$(MAKE) $(MFLAGS) all-srv; \
else \
echo "run configure with $(BUILD_OPT) to build $(PROGRAMS)"; \
veryclean-common: veryclean-srv FORCE
lint-common: FORCE
- @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ @if test "$(BUILD_SRV)" = "yes" ; then \
$(MAKE) $(MFLAGS) lint-srv; \
else \
echo "run configure with $(BUILD_OPT) to lint $(PROGRAMS)"; \
fi
5lint-common: FORCE
- @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ @if test "$(BUILD_SRV)" = "yes" ; then \
$(MAKE) $(MFLAGS) 5lint-srv; \
else \
echo "run configure with $(BUILD_OPT) to 5lint $(PROGRAMS)"; \
fi
depend-common: FORCE
- @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ @if test "$(BUILD_SRV)" = "yes" ; then \
$(MAKE) $(MFLAGS) depend-srv; \
else \
echo "run configure with $(BUILD_OPT) to depend $(PROGRAMS)"; \
fi
install-common: FORCE
- @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ @if test "$(BUILD_SRV)" = "yes" ; then \
$(MAKE) $(MFLAGS) install-srv; \
else \
echo "run configure with $(BUILD_OPT) to install $(PROGRAMS)"; \