Makefile.am: Some reformatting.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 4 Apr 2017 08:39:49 +0000 (09:39 +0100)
Makefile.am

index f6fa934..0f24bbc 100644 (file)
@@ -30,14 +30,32 @@ ACLOCAL_AMFLAGS              = -Im4
 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
@@ -76,19 +94,7 @@ SUBDIRS                      += .
 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::