Use a generic make rule to build all the test programs, rather than specifically mentioning each one. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> --- On Tue, 29 May 2007, Junio C Hamano wrote:Something like this? Makefile | 24 +++++------------------- 1 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 7527734..cac0a4a 100644 --- a/Makefile +++ b/Makefile @@ -942,7 +942,7 @@ endif ### Testing rules -TEST_PROGRAMS = test-chmtime$X test-genrandom$X +TEST_PROGRAMS = test-chmtime$X test-genrandom$X test-date$X test-delta$X test-sha1$X test-match-trees$X all:: $(TEST_PROGRAMS) @@ -955,26 +955,12 @@ export NO_SVN_TESTS test: all $(MAKE) -C t/ all -test-date$X: test-date.c date.o ctype.o - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o +test-date$X: date.o ctype.o -test-delta$X: test-delta.o diff-delta.o patch-delta.o $(GITLIBS) - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) +test-delta$X: diff-delta.o patch-delta.o -test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS) - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) - -test-sha1$X: test-sha1.o $(GITLIBS) - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) - -test-match-trees$X: test-match-trees.o $(GITLIBS) - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) - -test-chmtime$X: test-chmtime.c - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $< - -test-genrandom$X: test-genrandom.c - $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $< +test-%$X: test-%.o $(GITLIBS) + $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) check-sha1:: test-sha1$X ./test-sha1.sh -- 1.5.2 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Eric Hopper | Question about Reiser4 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Nigel Kukard | SATA problems |
git: | |
| Junichi Uekawa | Re: [ANNOUNCE] GIT 1.5.4 |
| Miles Bader | way to automatically add untracked files? |
| Michael Hendricks | removing content from git history |
| Thomas Glanzmann | SLES 10 git packages |
| Adrian Bunk | Re: [BUG] New Kernel Bugs |
| Auke Kok | [PATCH] e1000e: test MSI interrupts |
| Felix Radensky | RE: e1000e "Detected Tx Unit Hang" |
| Jesper Dangaard Brouer | [PATCH 0/2] HTB scheduler HTB_HYSTERESIS modifications |
| Jonathan Steel | Performance Issues of Intel Quad Port NIC |
| Prabhu Gurumurthy | Re: Problems with second ipsec(ctl) tunnel |
| Iñigo | Re: Real men don't attack straw men |
| Steve B | Intel Atom and D945GCLF2 |
| VPN's on NetBSD | 5 hours ago | NetBSD |
| Why does uClinux 2.6.18 bootup block SuperIO UART IRQs that BIOS configured | 6 hours ago | Linux kernel |
| USB statistics | 7 hours ago | Linux kernel |
| Block Sub System query | 12 hours ago | Linux kernel |
| kernel module to intercept socket creation | 13 hours ago | Linux kernel |
| Image size changing during each build | 13 hours ago | Linux kernel |
| Soft lock bug | 18 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 1 day ago | Linux kernel |
| Question on swap as ramdisk partition | 1 day ago | Linux kernel |
| serial driver xmit problem | 1 day ago | Linux kernel |
