Re: Cogito: split Makefile targets of Cogito/git
- From
- Kay Sievers <kay.sievers@vrfy.org>
- Date
- Jun 11, 2005, 20:19 UTC
- Message-ID
- <20050611201933.GC22991@vrfy.org>
- In-Reply-To
- <20050611195033.GA22713@vrfy.org>
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
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); \