From df0c9bee9446adf6dc0b5cc896a705f01fa96db9 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Sat, 27 Sep 2003 15:52:17 +0000
Subject: [PATCH] Fix build fix (bug #321)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b904fa6b91..1884f17614 100755
--- a/Makefile
+++ b/Makefile
@@ -155,10 +155,11 @@ all: depend asterisk subdirs
 editline/config.h:
 	cd editline && unset CFLAGS LIBS && ./configure ; \
 
-editline/libedit.a:
+editline/libedit.a: FORCE
+	cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
 	$(MAKE) -C editline libedit.a
 
-db1-ast/libdb1.a: 
+db1-ast/libdb1.a: FORCE
 	@if [ -d db1-ast ]; then \
 		$(MAKE) -C db1-ast libdb1.a ; \
 	else \
@@ -194,7 +195,7 @@ build.h:
 	./make_build_h
 endif
 
-stdtime/libtime.a:
+stdtime/libtime.a: FORCE
 	@if [ -d stdtime ]; then \
 		$(MAKE) -C stdtime libtime.a ; \
 	else \
@@ -415,3 +416,4 @@ depend: .depend
 .depend:
 	./mkdep ${CFLAGS} `ls *.c`
 
+FORCE:
-- 
GitLab