summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..e6923a4
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,32 @@
+AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = libcnary src include tools docs
+
+if HAVE_CYTHON
+SUBDIRS += cython
+endif
+
+if BUILD_TESTS
+SUBDIRS += test
+endif
+
+if BUILD_FUZZERS
+SUBDIRS += fuzz
+endif
+
+EXTRA_DIST = \
+ README.md \
+ git-version-gen
+
+dist-hook:
+ @if ! git diff --quiet; then echo "Uncommitted changes present; not releasing"; exit 1; fi
+ echo $(VERSION) > $(distdir)/.tarball-version
+
+docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/include/plist/*.h
+ rm -rf docs/html
+ doxygen doxygen.cfg
+
+docs/README.doxygen.md: README.md
+ awk '/\#\# Table of Contents/{while(getline && $$0 != ""){}{print "[TOC]"}}1' README.md > $@
+
+docs: doxygen.cfg docs/README.doxygen.md docs/html