|
1 | 1 | # Unix Makefile for qhull and rbox (default gcc/g++) |
2 | 2 | # |
3 | 3 | # see README.txt |
4 | | -# Qt project file at src/qhull-all.pro |
| 4 | +# For qhulltest, use Qt project file at src/qhull-all.pro |
5 | 5 | # |
6 | 6 | # Results |
7 | 7 | # qhull Computes convex hulls and related structures (libqhullstatic) |
|
30 | 30 | # make cleanall Remove generated files |
31 | 31 | # |
32 | 32 | # BINDIR directory where to copy executables |
| 33 | +# DESTDIR destination directory |
| 34 | +# DOCDIR directory where to copy html documentation |
| 35 | +# INCDIR directory where to copy headers |
| 36 | +# LIBDIR directory where to copy libraries |
33 | 37 | # MANDIR directory where to copy manual pages |
34 | 38 | # PRINTMAN command for printing manual pages |
35 | 39 | # PRINTC command for printing C files |
|
60 | 64 | # You may build the qhull programs without using a library |
61 | 65 | # make qhullx |
62 | 66 |
|
63 | | -BINDIR = /usr/local/bin |
64 | | -MANDIR = /usr/local/man/man1 |
| 67 | +DESTDIR = /usr/local |
| 68 | +BINDIR = $(DESTDIR)/bin |
| 69 | +DOCDIR = $(DESTDIR)/share/doc/packages/qhull |
| 70 | +INCDIR = $(DESTDIR)/include |
| 71 | +LIBDIR = $(DESTDIR)/lib |
| 72 | +MANDIR = $(DESTDIR)/man/man1 |
65 | 73 |
|
66 | 74 | # if you do not have enscript, try a2ps or just use lpr. The files are text. |
67 | 75 | PRINTMAN = enscript -2rl |
@@ -139,15 +147,27 @@ cleanall: clean |
139 | 147 | doc: |
140 | 148 | $(PRINTMAN) $(TXTFILES) $(DOCFILES) |
141 | 149 |
|
142 | | -install: |
143 | | - cp bin/qconvex $(BINDIR)/qconvex |
144 | | - cp bin/qdelaunay $(BINDIR)/qdelaunay |
145 | | - cp bin/qhalf $(BINDIR)/qhalf |
146 | | - cp bin/qhull $(BINDIR)/qhull |
147 | | - cp bin/qvoronoi $(BINDIR)/qvoronoi |
148 | | - cp bin/rbox $(BINDIR)/rbox |
| 150 | +install: |
| 151 | + mkdir -p $(BINDIR) |
| 152 | + mkdir -p $(DOCDIR) |
| 153 | + mkdir -p $(INCDIR)/libqhull |
| 154 | + mkdir -p $(INCDIR)/libqhullcpp |
| 155 | + mkdir -p $(INCDIR)/road |
| 156 | + mkdir -p $(LIBDIR) |
| 157 | + mkdir -p $(MANDIR) |
| 158 | + cp bin/qconvex $(BINDIR) |
| 159 | + cp bin/qdelaunay $(BINDIR) |
| 160 | + cp bin/qhalf $(BINDIR) |
| 161 | + cp bin/qhull $(BINDIR) |
| 162 | + cp bin/qvoronoi $(BINDIR) |
| 163 | + cp bin/rbox $(BINDIR) |
149 | 164 | cp html/qhull.man $(MANDIR)/qhull.1 |
150 | 165 | cp html/rbox.man $(MANDIR)/rbox.1 |
| 166 | + cp html/* $(DOCDIR) |
| 167 | + cp -P lib/* $(LIBDIR) |
| 168 | + cp src/libqhull/*.h $(INCDIR)/libqhull |
| 169 | + cp src/libqhullcpp/*.h $(INCDIR)/libqhullcpp |
| 170 | + cp src/road/*.h $(INCDIR)/road |
151 | 171 |
|
152 | 172 | new: cleanall all |
153 | 173 |
|
@@ -254,8 +274,9 @@ TESTFILES= $(TCPP)/qhulltest.cpp $(TCPP)/Coordinates_test.cpp $(TCPP)/Point_test |
254 | 274 | TXTFILES= Announce.txt REGISTER.txt COPYING.txt README.txt src/Changes.txt |
255 | 275 | DOCFILES= html/rbox.txt html/qhull.txt |
256 | 276 | FILES= Makefile src/rbox/rbox.c src/user_eg/user_eg.c src/user_eg2/user_eg2.c eg/q_test eg/q_egtest eg/q_eg |
257 | | -HTMFILES= html/qhull.man html/rbox.man $(L)/qh-code.htm $(L)/qh-optg.htm $(L)/qh-optt.htm \ |
258 | | - html/index.htm html/qh-quick.htm html/qh-impre.htm html/qh-eg.htm \ |
| 277 | +MANFILES= html/qhull.man html/rbox.man |
| 278 | +# Source code is documented by src/libqhull/*.htm |
| 279 | +HTMFILES= html/index.htm html/qh-quick.htm html/qh-impre.htm html/qh-eg.htm \ |
259 | 280 | html/qh-optc.htm html/qh-opto.htm html/qh-optf.htm html/qh-optp.htm html/qh-optq.htm \ |
260 | 281 | html/qh-c.htm html/qh-faq.htm html/qhull.htm html/qconvex.htm html/qdelaun.htm \ |
261 | 282 | html/qh-geom.htm html/qh-globa.htm html/qh-io.htm html/qh-mem.htm html/qh-merge.htm \ |
|
0 commit comments