X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/c83f2f5e1213fb20d18c6258cb5f87a6c9fd5c93..33ded5fc57abdd055378ef913c5a23a1c21bea7c:/librb/Makefile.am diff --git a/librb/Makefile.am b/librb/Makefile.am index c8cb6fc2..6b9a006c 100644 --- a/librb/Makefile.am +++ b/librb/Makefile.am @@ -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