More implementation.
[wrappi.git] / Makefile.am
index 300b8f8..ad12f31 100644 (file)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 ACLOCAL_AMFLAGS = -I m4
+
+# The API files are actually linked into the generator, but an extra
+# camlp4-based preprocessor must be compiled first before we can
+# compile the rest of the generator.  Hence the rather convoluted set
+# of subdirectories here.
+SUBDIRS = generator-lib generator-macros APIs generator
+
+# The C library.
+SUBDIRS += lib
+
+# Build the C example programs.
+SUBDIRS += examples
+
+CLEANFILES = *~
+
+dist-hook:
+       rm -f lib/LIB_MINOR
+       echo $$(( ( $$(date +%s) - $$(date -d 2011-12-27 +%s) ) / 86400 )) \
+         > lib/LIB_MINOR-t
+       mv lib/LIB_MINOR-t lib/LIB_MINOR