1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I m4
21 logdir = @prefix@/logs
23 BUILT_SOURCES = include/serno.h
26 @if [ -d .git ]; then \
27 revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \
28 datecode=`git log -1 --pretty=format:%ct`; \
29 if [ -n "$$revh" ]; then \
30 echo '#define SERNO "'$$revh'"' >include/serno.h ; \
31 echo "#define DATECODE $${datecode}UL" >>include/serno.h; \
34 @if [ ! -f include/serno.h ]; then \
35 echo '#define SERNO "unknown"' >include/serno.h; \
36 echo '#define DATECODE 0UL' >>include/serno.h; \
40 test -d ${DESTDIR}${logdir} || mkdir -p ${DESTDIR}${logdir}
43 rm -f ${DESTDIR}${moduledir}/*.la
44 rm -f ${DESTDIR}${moduledir}/autoload/*.la
45 rm -f ${DESTDIR}${moduledir}/extensions/*.la
46 rm -f ${DESTDIR}${moduledir}/*.dll.a
47 rm -f ${DESTDIR}${moduledir}/autoload/*.dll.a
48 rm -f ${DESTDIR}${moduledir}/extensions/*.dll.a