Small fixes to improve portability.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 10 Mar 2002 15:40:27 +0000 (15:40 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 10 Mar 2002 15:40:27 +0000 (15:40 +0000)
Makefile.am
autogen.sh

index bbfa014..1c152ca 100644 (file)
@@ -17,7 +17,7 @@ ChangeLog:
        cvs2cl -U cvsusers --fsf
 
 cvs-clean: maintainer-clean
-       for f in $(CVS_CREATED) `find -name Makefile.in` tinc-$(VERSION).tar.gz; do\
+       for f in $(CVS_CREATED) `find -name Makefile.in` tinc-$(VERSION).tar.gz; do\
          rm -Rf "$$f"; \
        done
 
index 186d1e3..21a0f4c 100644 (file)
@@ -4,7 +4,10 @@
 
 DIE=0
 
-alias make=${MAKE:-`which gmake || which make`}
+if ${MAKE:-gmake} -q -C . autogen.sh 2> /dev/null
+then
+  alias make=${MAKE:-gmake}
+fi
 
 srcdir="`/bin/pwd`"