X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=Makefile;h=0ae921c540ddc748e989189455ec4ea0954ee5d6;hp=b551840c57c364db23feaabb92ad7beb55d5fe99;hb=ce4fd67e5bfd07192ca5cb357798aaa3588512e4;hpb=8e2913bfbd2ae3cd8a2d07b879f0e78e455fed6f diff --git a/Makefile b/Makefile index b551840..0ae921c 100644 --- a/Makefile +++ b/Makefile @@ -10,16 +10,18 @@ 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 PREFIX=/usr/local -all: test libhexagon.a docs +all: libhexagon.a docs testfiles clean: rm -f $(OBJS) libhexagon.a $(TESTS) -t/%.t: t/%.o t/tap.o $(OBJS) +t/%.t: t/%.o t/ctap.o $(OBJS) $(CC) -I.. -I. -o $@ $+ $(LDFLAGS) -test: $(TESTS) - @prove --exec '' 2>/dev/null +testfiles: $(TESTS) + +test: libhexagon.a $(TESTS) + @prove --exec $(TESTS) '' 2>/dev/null libhexagon.a: $(OBJS) ar r $@ $+