SUBDIRS =
###--------------------------------------------------------------------------
-### The main library.
+### Top-level library.
lib_LTLIBRARIES = libcatacomb.la
libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
-no-undefined
+libcatacomb_la_SOURCES =
libcatacomb_la_LIBADD = $(MATHLIBS) $(PIXIE_LIBS) $(CATACOMB_LIBS) \
$(mLib_LIBS)
-libcatacomb_la_SOURCES =
+
+###--------------------------------------------------------------------------
+### Package-configuration file.
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = catacomb.pc
+EXTRA_DIST += catacomb.pc.in
+CLEANFILES += catacomb.pc
+
+catacomb.pc: catacomb.pc.in Makefile
+ $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
+ mv $@.new $@
+
+###--------------------------------------------------------------------------
+### Subdirectories.
+###
+### Note: There are implicit dependencies between the subdirectories. Be
+### careful about reordering them.
## Basic utilities.
SUBDIRS += base
SUBDIRS += progs
###--------------------------------------------------------------------------
-### The pkg-config file.
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = catacomb.pc
-EXTRA_DIST += catacomb.pc.in
-CLEANFILES += catacomb.pc
-
-catacomb.pc: catacomb.pc.in Makefile
- $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
- mv $@.new $@
-
-###--------------------------------------------------------------------------
-### Release tweaking.
+### Distribution.
## Release number.
dist-hook::
## catacomb2
EXTRA_DIST += debian/catacomb2.install
+EXTRA_DIST += debian/catacomb2.symbols
## catacomb-bin
EXTRA_DIST += debian/catacomb-bin.install
EXTRA_DIST += debian/catacomb-bin.config
EXTRA_DIST += debian/catacomb-bin.templates
+## catacomb-data
+EXTRA_DIST += debian/catacomb-data.install
+
## catacomb-dev
EXTRA_DIST += debian/catacomb-dev.install