Make git-cherry-pick in target "all"
Since git-cherry-pick is simply a copy of git-revert, it can be created before installing (so that it can be used without installing, too). Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Oct 20, 2005 at 17:13 UTC
4eba0f3763e2f4bbf614c99ae3a5b299e8d61aff
2 files changed
+5
-2
.gitignore
+1
@@ -12,6 +12,7 @@ git-check-ref-format
12
git-checkout
13
git-checkout-index
14
git-cherry
15
+git-cherry-pick
16
git-clone
17
git-clone-pack
18
git-commit
Makefile
+4
-2
@@ -310,7 +310,7 @@ DEFINES += -DSHA1_HEADER=$(call shellquote,$(SHA1_HEADER))
310
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
311
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
312
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
313
- gitk
313
+ gitk git-cherry-pick
314
315
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
316
### Build rules
@@ -351,6 +351,9 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
351
$@.py >$@
352
chmod +x $@
353
354
+git-cherry-pick: git-revert
355
+ cp $< $@
356
+
357
%.o: %.c
358
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
359
%.o: %.S
@@ -410,7 +413,6 @@ check:
413
install: $(PROGRAMS) $(SCRIPTS)
414
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(bindir))
415
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(call shellquote,$(DESTDIR)$(bindir))
413
- $(INSTALL) git-revert $(call shellquote,$(DESTDIR)$(bindir)/git-cherry-pick)
416
sh ./cmd-rename.sh $(call shellquote,$(DESTDIR)$(bindir))
417
$(MAKE) -C templates install
418
$(INSTALL) -d -m755 $(call shellquote,$(DESTDIR)$(GIT_PYTHON_DIR))