From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Subject: Re: Cogito: split Makefile targets of Cogito/git Date: Sat, 11 Jun 2005 22:19:33 +0200 Message-ID: <20050611201933.GC22991@vrfy.org> References: <20050611195033.GA22713@vrfy.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V" Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sat Jun 11 22:18:00 2005 Return-path: Received: from vger.kernel.org ([12.107.209.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhCQS-0003HK-Ax for gcvg-git@gmane.org; Sat, 11 Jun 2005 22:17:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261814AbVFKUU5 (ORCPT ); Sat, 11 Jun 2005 16:20:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261818AbVFKUUw (ORCPT ); Sat, 11 Jun 2005 16:20:52 -0400 Received: from soundwarez.org ([217.160.171.123]:17378 "EHLO soundwarez.org") by vger.kernel.org with ESMTP id S261814AbVFKUTf (ORCPT ); Sat, 11 Jun 2005 16:19:35 -0400 Received: by soundwarez.org (Postfix, from userid 2702) id D87CD3FA0C; Sat, 11 Jun 2005 22:19:33 +0200 (CEST) To: Petr Baudis Content-Disposition: inline In-Reply-To: <20050611195033.GA22713@vrfy.org> User-Agent: Mutt/1.5.9i Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jun 11, 2005 at 09:50:33PM +0200, Kay Sievers wrote: > This splits the targets of Cogito/git to be able to call it > independently. This way we can easily make Cogito a separate > package, which just requires git. > +.PHONY: all it cogito "all it cogito" sounds funny, but is obviously wrong. :) New patch attached. Thanks Dave! Kay --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="cogito-Makefile-split-install.patch" diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -112,9 +112,10 @@ endif CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)' - -all: $(PROG) $(GEN_SCRIPT) - +.PHONY: all git cogito +all: git cogito +git: $(PROG) +cogito: $(GEN_SCRIPT) test-delta: test-delta.c diff-delta.o patch-delta.o $(CC) $(CFLAGS) -o $@ $^ @@ -169,9 +170,16 @@ test: all sedlibdir=$(shell echo $(libdir) | sed 's/\//\\\//g') -install: $(PROG) $(SCRIPTS) $(SCRIPT) $(LIB_SCRIPT) $(GEN_SCRIPT) +.PHONY: install install-git install-cogito +install: install-git install-cogito + +install-git: $(PROG) $(SCRIPTS) + $(INSTALL) -m755 -d $(DESTDIR)$(bindir) + $(INSTALL) $(PROG) $(SCRIPTS) $(DESTDIR)$(bindir) + +install-cogito: $(SCRIPT) $(LIB_SCRIPT) $(GEN_SCRIPT) $(INSTALL) -m755 -d $(DESTDIR)$(bindir) - $(INSTALL) $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT) $(DESTDIR)$(bindir) + $(INSTALL) $(SCRIPT) $(GEN_SCRIPT) $(DESTDIR)$(bindir) $(INSTALL) -m755 -d $(DESTDIR)$(libdir) $(INSTALL) $(LIB_SCRIPT) $(DESTDIR)$(libdir) cd $(DESTDIR)$(bindir); \ --xHFwDpU9dbj6ez1V--