dc78303b079985b5a146d093bbb8a5d06489562d galt Tue Mar 2 02:39:07 2010 -0800 initial commit of git-reports diff --git makefile makefile new file mode 100644 index 0000000..373c98e --- /dev/null +++ makefile @@ -0,0 +1,39 @@ + +JKSRCDIR = ../../kent/src +JKLIBDIR = $(JKSRCDIR)/lib/$(MACHTYPE) + +EXE = git-reports + +.c.o: + gcc -ggdb -Wimplicit -DDEBUG -Wall -I$(JKSRCDIR)/inc -I$(JKSRCDIR)/hg/inc -c $*.c + +L = $(MYSQLLIBS) -lm +MYLIBS = $(JKLIBDIR)/jkhgap.a $(JKLIBDIR)/jkweb.a + + +all: $(EXE) + + +O = $(EXE).o + +$(EXE): $O + gcc $O $(MYLIBS) $L -o $(EXE) + chmod a+rx $(EXE) + #strip $(EXE) + #cp $(EXE) $(HOME)/bin/$(MACHTYPE) + + +test: $(EXE) + $(EXE) v223_branch v224_branch 2010-01-05 2010-01-19 v224 /cluster/bin/build/buildrepo/ /cluster/home/galt/public_html/git-reports + +backup: + date +%Y-%m-%d-%H-%M | gawk '{printf("zip -r $(EXE)%s.zip *\n",$$1);}' > tempX + chmod 755 tempX + ./tempX + rm tempX + scp *.zip screech:/scratch/backups/ + rm *.zip + +clean: + rm -f *.o $(EXE) *.tmp +