X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/749d697c98e41454ea5fa5ff702870740c454ba5..33ded5fc57abdd055378ef913c5a23a1c21bea7c:/librb/Makefile.am diff --git a/librb/Makefile.am b/librb/Makefile.am index 2cfeb8e2..6b9a006c 100644 --- a/librb/Makefile.am +++ b/librb/Makefile.am @@ -9,4 +9,14 @@ BUILT_SOURCES = include/serno.h # NOTE: you'll want to change the below if you are unbundling include/serno.h: - @cp ../include/serno.h include/ + @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