X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=3b211117320d44bddf5e5310255bd0f367b01032;hb=43fec2264a6cdffc083123ef412d79c95ec44371;hp=85fe34567b779a5f6180cf9f55a0dbade7ceefb3;hpb=7fe7b4127b997464f8127cb6ac0e7181aacad33a;p=tig.git diff --git a/Makefile b/Makefile index 85fe345..3b21111 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,8 @@ LDLIBS ?= -lcurses CFLAGS ?= -Wall -O2 DFLAGS = -g -DDEBUG -Werror -O0 PROGS = tig +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 @@ -58,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) @@ -86,7 +88,7 @@ install-doc-man: doc-man done install-release-doc-man: - GIT_INDEX_FILE=.tmp-doc-index git read-tree release + GIT_INDEX_FILE=.tmp-doc-index git read-tree origin/release GIT_INDEX_FILE=.tmp-doc-index git checkout-index -f --prefix=./ $(MANDOC) rm -f .tmp-doc-index $(MAKE) install-doc-man @@ -102,7 +104,7 @@ install-doc-html: doc-html done install-release-doc-html: - GIT_INDEX_FILE=.tmp-doc-index git read-tree release + GIT_INDEX_FILE=.tmp-doc-index git read-tree origin/release GIT_INDEX_FILE=.tmp-doc-index git checkout-index -f --prefix=./ $(HTMLDOC) rm -f .tmp-doc-index $(MAKE) install-doc-html @@ -143,13 +145,17 @@ rpm: dist rpmbuild -ta $(TARNAME).tar.gz configure: configure.ac acinclude.m4 - $(AUTORECONF) -v + $(AUTORECONF) -v -I contrib .PHONY: all all-debug doc doc-man doc-html install install-doc \ install-doc-man install-doc-html clean spell-check dist rpm -tig.o: tig.c -tig: tig.o +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 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' \