Cogito: split Makefile targets of Cogito/git
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.
Thanks,
Kay
Makefile +13 -5
@@ -112,9 +112,10 @@ endif CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)' - -all: $(PROG) $(GEN_SCRIPT) - +.PHONY: all it 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); \
Quoted 1 line · Kay Sievers
+.PHONY: all it cogito
I suppose this should be
+.PHONY: all git cogito
skimo
Quoted 5 lines · Kay Sievers
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
Makefile +13 -5
@@ -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); \
Dear diary, on Sat, Jun 11, 2005 at 10:19:33PM CEST, I got a letter where Kay Sievers <[email protected]> told me that...
Quoted 9 lines · Kay Sievers
Quoted 5 lines
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.
Could you please sign off the patch?
Thanks,
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ <Espy> be careful, some twit might quote you out of context..
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KS" == Kay Sievers <[email protected]> writes:
KS> -
KS> -all: $(PROG) $(GEN_SCRIPT)
KS> -
KS> +.PHONY: all it cogito
KS> +all: git cogito
KS> +git: $(PROG)
KS> +cogito: $(GEN_SCRIPT)
(Tongue in cheek) How about this instead ;^)
-
-all: $(PROG) $(GEN_SCRIPT)
-
+.PHONY: all git coo
+all: git coo
+git: $(PROG)
+coo: $(GEN_SCRIPT)