From 1a3cd8e6ad52008d37981ca9043da28c18f567f6 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 6 May 2003 00:00:20 +0000 Subject: dep fix, pbx fix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@962 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- astman/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'astman') diff --git a/astman/Makefile b/astman/Makefile index 9698d6280..7b9d20f6f 100755 --- a/astman/Makefile +++ b/astman/Makefile @@ -3,7 +3,7 @@ # CFLAGS+=-DNO_AST_MM TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi) -all: $(TARGET) +all: depend $(TARGET) install: if [ "$(TARGET)" != "none" ]; then \ @@ -16,7 +16,15 @@ none: @echo Not building the Asterisk Manager "astman" clean: - rm -f *.o astman + rm -f *.o astman .depend astman: astman.o ../md5.o $(CC) -o astman astman.o ../md5.o -lnewt + +include .depend + +depend: .depend + +.depend: + ../mkdep $(CFLAGS) `ls *.c` + -- cgit v1.2.3