X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2FMakefile;h=e423af9593208338e83222855c255ee8f3a39b0b;hb=638ccfdf0eeabf3d985426308b2a82db6207ae28;hp=5c07cec0eaf51ee4421712f60bdbfd3fc21a3dcd;hpb=8cc393068aedc7378166ccc013d3954cd87f0deb;p=git.git diff --git a/tools/Makefile b/tools/Makefile index 5c07cec0..e423af95 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -7,17 +7,20 @@ CFLAGS=-g $(COPTS) -Wall INSTALL=install HOME=$(shell echo $$HOME) prefix=$(HOME) -bin=$(prefix)/bin +bindir=$(prefix)/bin # dest= -PROGRAMS=mailsplit mailinfo -SCRIPTS=applymbox applypatch +PROGRAMS=git-mailsplit git-mailinfo +SCRIPTS=git-applymbox git-applypatch + +git-%: %.c + $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) all: $(PROGRAMS) install: $(PROGRAMS) $(SCRIPTS) - $(INSTALL) -m755 -d $(dest)$(bin) - $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bin) + $(INSTALL) -m755 -d $(dest)$(bindir) + $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(dest)$(bindir) clean: rm -f $(PROGRAMS) *.o