From 2885ecaa19a04ab9980896d1a849cdae9238b7d1 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Mon, 30 Jul 2007 15:23:43 +0200 Subject: [PATCH] Fix Makefile buglets - make install without having called make before - create man directories if non pre-existent Signed-off-by: Vincent Legoll Signed-off-by: Jens Axboe --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1cd5a70..e9f8628 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,11 @@ PROGS = blkparse blktrace verify_blkparse blkrawverify LIBS = -lpthread SCRIPTS = btrace -all: $(PROGS) $(SCRIPTS) +ALL = $(PROGS) $(SCRIPTS) btt/btt + +all: $(ALL) + +btt/btt: $(MAKE) -C btt %.o: %.c @@ -60,10 +64,11 @@ clean: docsclean -rm -f *.o $(PROGS) .depend btrace-1.0.tar.bz2 $(MAKE) -C btt clean -install: $(PROGS) $(SCRIPTS) +install: all $(INSTALL) -m755 -d $(DESTDIR)$(bindir) - $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) - $(INSTALL) btt/btt $(DESTDIR)$(bindir) + $(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man1 + $(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man8 + $(INSTALL) $(ALL) $(DESTDIR)$(bindir) $(INSTALL) doc/*.1 $(DESTDIR)$(mandir)/man1 $(INSTALL) doc/*.8 $(DESTDIR)$(mandir)/man8 -- 2.25.1