]> granicus.if.org Git - poly2tri-c/commitdiff
Install header files when running make install
authorBarak Itkin <lightningismyname@gmail.com>
Fri, 1 Jun 2012 18:28:35 +0000 (21:28 +0300)
committerBarak Itkin <lightningismyname@gmail.com>
Fri, 1 Jun 2012 18:28:35 +0000 (21:28 +0300)
Makefile.am
p2t/Makefile.am
p2t/common/Makefile.am
p2t/sweep/Makefile.am
refine/Makefile.am
render/Makefile.am

index 0ddc800e3511165c0dd159a0307b3df7ae816b60..659a29998e8428e4f9cb459af7a1cc38c262bda6 100644 (file)
@@ -7,8 +7,11 @@ AM_LDFLAGS = -version-info $(P2TC_LIBRARY_VERSION)
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = poly2tri-c.pc
 
+P2TC_publicdir = $(includedir)/poly2tri-c-$(P2TC_API_VERSION)
+export P2TC_publicdir
+P2TC_public_HEADERS =
+
 lib_LTLIBRARIES = libpoly2tri-c-@P2TC_API_VERSION@.la
 
 libpoly2tri_c_@P2TC_API_VERSION@_la_LIBADD = p2t/libp2tc.la refine/libp2tc-refine.la render/libp2tc-render.la
 libpoly2tri_c_@P2TC_API_VERSION@_la_SOURCES =
-
index c635a68281b188c9c7dbf4b057bab1945db3feb5..b14155c8b77a744078fe23e22f67f44ca8ed51f4 100644 (file)
@@ -2,5 +2,9 @@ SUBDIRS = sweep common
 
 noinst_LTLIBRARIES = libp2tc.la
 
+P2TC_P2T_publicdir = $(P2TC_publicdir)/p2t
+export P2TC_P2T_publicdir
+P2TC_P2T_public_HEADERS = poly2tri.h
+
 libp2tc_la_LIBADD = common/libp2tc-common.la sweep/libp2tc-sweep.la
 libp2tc_la_SOURCES =
index 1b629ea68a6f7778577a2269c14f589038c30fe9..8da3514ee4822ab66a4a6ec6233155a6c2b00ffe 100644 (file)
@@ -1,2 +1,5 @@
 noinst_LTLIBRARIES = libp2tc-common.la
 libp2tc_common_la_SOURCES = cutils.h poly2tri-private.h shapes.c shapes.h utils.c utils.h
+
+P2TC_P2T_COMMON_publicdir = $(P2TC_P2T_publicdir)/common
+P2TC_P2T_COMMON_public_HEADERS = cutils.h poly2tri-private.h shapes.h utils.h
index 7fb581e40538a661af904d7ea743b237745050d3..5cf18ca971301997a98b0d127d57a039f103a108 100644 (file)
@@ -1,2 +1,5 @@
 noinst_LTLIBRARIES = libp2tc-sweep.la
 libp2tc_sweep_la_SOURCES = advancing_front.c advancing_front.h cdt.c cdt.h sweep.c sweep_context.c sweep_context.h sweep.h
+
+P2TC_P2T_SWEEP_publicdir = $(P2TC_P2T_publicdir)/sweep
+P2TC_P2T_SWEEP_public_HEADERS = advancing_front.h cdt.h sweep_context.h sweep.h
index 4f9647864045cf14533832ce4b1346aee32be120..f42d9f9b1edc4edda78176c4c2f0495f8d4d7a61 100644 (file)
@@ -1,3 +1,6 @@
 noinst_LTLIBRARIES = libp2tc-refine.la
 
 libp2tc_refine_la_SOURCES = bounded-line.c bounded-line.h cdt.c cdt.h circle.c circle.h cluster.c cluster.h delaunay-terminator.c delaunay-terminator.h edge.c edge.h line.c line.h rmath.c rmath.h mesh.c mesh.h point.c point.h pslg.c pslg.h refine.h triangle.c triangle.h triangulation.h utils.c utils.h vector2.c vector2.h visibility.c visibility.h
+
+P2TC_REFINE_publicdir = $(P2TC_publicdir)/refine
+P2TC_REFINE_public_HEADERS = bounded-line.h cdt.h circle.h cluster.h delaunay-terminator.h edge.h line.h mesh.h point.h pslg.h refine.h rmath.h triangle.h triangulation.h utils.h vector2.h visibility.h
index 6aa8fa2095129a406fbfbc59a0e90ff967d734b4..8c02ec33a2071dbb7f6d925a0789951aa9e36c65 100644 (file)
@@ -1,3 +1,6 @@
 noinst_LTLIBRARIES = libp2tc-render.la
 
 libp2tc_render_la_SOURCES = mesh-render.c mesh-render.h svg-plot.c svg-plot.h
+
+P2TC_RENDER_publicdir = $(P2TC_publicdir)/render
+P2TC_RENDER_public_HEADERS = mesh-render.h svg-plot.h