From 0e1989aacac1e67c9cb270083bcb0c3af9836fab Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sun, 1 Dec 2013 17:11:59 +0000 Subject: [PATCH] Allow Makefile to work if the "timeout" binary is not available --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59498dae..177808fb 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ endif EVAL := $(EVAL) --no-site-file --batch -l package-build.el --eval +TIMEOUT := $(shell which timeout && echo "timeout -k 60 600") all: packages packages/archive-contents json index @@ -75,7 +76,7 @@ $(RCPDIR)/.dirstamp: .FORCE $(RCPDIR)/%: .FORCE @echo " • Building recipe $(@F) ..." - - timeout -k 60 600 $(EVAL) "(package-build-archive '$(@F))" + - $(TIMEOUT) $(EVAL) "(package-build-archive '$(@F))" @echo " ✓ Wrote $$(ls -lsh $(PKGDIR)/$(@F)-*) " @echo " Sleeping for $(SLEEP) ..."