]> jfr.im git - solanum.git/blobdiff - librb/Makefile.am
librb: remove unnecessary NULL from the end of rb_string_to_array output
[solanum.git] / librb / Makefile.am
index c8cb6fc21b084d509e8245021fb9b7effb2b3bd4..6b9a006ca9474c1ceb80f3cfea2bb449e72b4ce7 100644 (file)
@@ -4,3 +4,19 @@ SUBDIRS = src
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = librb.pc
+
+BUILT_SOURCES = include/serno.h
+
+# NOTE: you'll want to change the below if you are unbundling
+include/serno.h:
+       @if [ -f ../include/serno.h ]; then \
+               cp ../include/serno.h include/; \
+       else \
+               echo '#define SERNO "unknown"' >include/serno.h; \
+               echo '#define DATECODE 0UL' >>include/serno.h; \
+       fi
+
+clean-local:
+       rm -f include/serno.h
+       rm -f src/version.c
+       rm -f src/version.c.last