X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Makefile;h=3b211117320d44bddf5e5310255bd0f367b01032;hb=fab628258e3b69e35265c20634ff821ebc40b754;hp=78131f515223e224935d942ab638886c5654ee54;hpb=389378ae4f62653a77d6b1679989734715a0fc22;p=tig.git diff --git a/Makefile b/Makefile index 78131f5..3b21111 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,8 @@ LDLIBS ?= -lcurses CFLAGS ?= -Wall -O2 DFLAGS = -g -DDEBUG -Werror -O0 PROGS = tig -SOURCE = tig.c tig.h io.c io.h +TESTS = test-graph +SOURCE = tig.c tig.h io.c io.h graph.c graph.h TXTDOC = tig.1.txt tigrc.5.txt manual.txt NEWS README INSTALL BUGS TODO MANDOC = tig.1 tigrc.5 tigmanual.7 HTMLDOC = tig.1.html tigrc.5.html manual.html README.html NEWS.html @@ -59,8 +60,8 @@ ASCIIDOC_FLAGS = -aversion=$(VERSION) -asysconfdir=$(sysconfdir) XMLTO ?= xmlto DOCBOOK2PDF ?= docbook2pdf -all: $(PROGS) -all-debug: $(PROGS) +all: $(PROGS) $(TESTS) +all-debug: $(PROGS) $(TESTS) all-debug: CFLAGS += $(DFLAGS) doc: $(ALLDOC) doc-man: $(MANDOC) @@ -150,8 +151,11 @@ configure: configure.ac acinclude.m4 install-doc-man install-doc-html clean spell-check dist rpm io.o: io.c io.h tig.h +graph.o: tig.h tig.o: tig.c tig.h io.h -tig: tig.o io.o +tig: tig.o io.o graph.o +test-graph.o: test-graph.c io.h tig.h graph.h +test-graph: io.o graph.o tig.spec: contrib/tig.spec.in sed -e 's/@@VERSION@@/$(RPM_VERSION)/g' \