X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=Makefile;h=b551840c57c364db23feaabb92ad7beb55d5fe99;hp=9b2f4426ffc8f1cda05ba94a46b00e0bf69184af;hb=8e2913bfbd2ae3cd8a2d07b879f0e78e455fed6f;hpb=8ca2b8a06b00066a20f744a61c9bcdd65949a344 diff --git a/Makefile b/Makefile index 9b2f442..b551840 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ 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 +PREFIX=/usr/local all: test libhexagon.a docs @@ -24,6 +25,11 @@ libhexagon.a: $(OBJS) ar r $@ $+ ranlib $@ +install: libhexagon.a hexagon.h doc/hexagon.3 + cp libhexagon.a $(PREFIX)/lib + cp hexagon.h $(PREFIX)/include + cp doc/hexagon.3 $(PREFIX)/share/man/man3 + docs: make -C doc