1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I m4
20 logdir = @prefix@/logs
22 BUILT_SOURCES = include/serno.h
25 @if [ -d .git ]; then \
26 revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \
27 datecode=`git log -1 --pretty=format:%ct`; \
28 if [ -n "$$revh" ]; then \
29 echo '#define SERNO "'$$revh'"' >include/serno.h ; \
30 echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
33 @if [ ! -f include/serno.h ]; then \
34 echo '#define SERNO "unknown"' >include/serno.h; \
35 echo '#define DATECODE 0UL' >>include/serno.h; \
39 test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}