X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/b5d086c2894c492e17391b17f2600de83206a7b6..180bfa7ca8efeb1297a0bc3f0ff55b02b4e40f9b:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 55757e0..d1a016d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,17 @@ include $(top_srcdir)/vars.am SUBDIRS = ###-------------------------------------------------------------------------- +### Package-configuration file. + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = sod.pc +CLEANFILES += sod.pc +EXTRA_DIST += sod.pc.in + +sod.pc: sod.pc.in Makefile + $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@ + +###-------------------------------------------------------------------------- ### Subdirectories to build ## The SOD translator. @@ -36,4 +47,37 @@ SUBDIRS += src ## The runtime support library. SUBDIRS += lib +## The tests and examples. +SUBDIRS += test + +###-------------------------------------------------------------------------- +### Distribution. + +## Release number. +dist-hook: + echo $(VERSION) >$(distdir)/RELEASE + +## Additional build tools. +EXTRA_DIST += config/auto-version +EXTRA_DIST += config/confsubst + +###-------------------------------------------------------------------------- +### Debian. + +EXTRA_DIST += debian/rules debian/copyright +EXTRA_DIST += debian/control debian/changelog +EXTRA_DIST += debian/compat + +## libsod +EXTRA_DIST += debian/libsod.install + +## libsod-dev +EXTRA_DIST += debian/libsod-dev.install + +## sod +EXTRA_DIST += debian/sod.install + +## sod-dev +EXTRA_DIST += debian/sod-dev.install + ###----- That's all, folks --------------------------------------------------