-noinst_LIBRARIES = libSky.a
-
-libSky_a_SOURCES = \
- cloud.cxx cloud.hxx \
- dome.cxx dome.hxx \
- moon.cxx moon.hxx \
- oursun.cxx oursun.hxx \
- sky.cxx sky.hxx \
- sphere.cxx sphere.hxx \
- stars.cxx stars.hxx
-
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/src
+includedir = @includedir@/sky
+
+lib_LIBRARIES = libsgsky.a
+
+include_HEADERS = \
+ cloud.hxx \
+ dome.hxx \
+ moon.hxx \
+ oursun.hxx \
+ sky.hxx \
+ sphere.hxx \
+ stars.hxx
+
+libsgsky_a_SOURCES = \
+ cloud.cxx \
+ dome.cxx \
+ moon.cxx \
+ oursun.cxx \
+ sky.cxx \
+ sphere.cxx \
+ stars.cxx
+
+INCLUDES += -I$(top_builddir)