X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=1662968c9d485bdbbb4007d220719f6a0d90635c;hb=f4de9d8b5cc2646e133d8c387fa1de5814cfb453;hp=b551840c57c364db23feaabb92ad7beb55d5fe99;hpb=8e2913bfbd2ae3cd8a2d07b879f0e78e455fed6f;p=hexagon diff --git a/Makefile b/Makefile index b551840..1662968 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,10 @@ CFLAGS= -Wall -Wno-parentheses $(ARCH) -I. -I.. OBJS= hexagon.o astar.o SRC=$(OBJS:.o=.c) TESTS= t/cantor.t t/distance.t t/adjacency.t t/range.t t/hexbin.t \ - t/gridsize.t t/center.t t/astar.t + t/gridsize.t t/center.t t/astar.t t/astarlg.t PREFIX=/usr/local -all: test libhexagon.a docs +all: libhexagon.a docs testfiles clean: rm -f $(OBJS) libhexagon.a $(TESTS) @@ -18,7 +18,9 @@ clean: t/%.t: t/%.o t/tap.o $(OBJS) $(CC) -I.. -I. -o $@ $+ $(LDFLAGS) -test: $(TESTS) +testfiles: $(TESTS) + +test: libhexagon.a $(TESTS) @prove --exec '' 2>/dev/null libhexagon.a: $(OBJS)