sed -e 's:@BINDIR@:@bindir@:g' \
-e 's:@CONFIG@:@sysconfdir@/onak.conf:g' \
-e 's:@LIBDIR@:@libdir@:g' \
+ -e 's:@RUNDIR@:@runstatedir@:g' \
-e 's:@SBINDIR@:@sbindir@:g' \
-e 's:@STATEDIR@:@localstatedir@:g' \
< $< > $@
doxygen-docs: *.c *.h Doxyfile
doxygen
-version.h:
+version.h: $(SRCS)
@echo '#include "config.h"' > version.h
- @if [ -e .bzr ]; then \
- echo "#define ONAK_VERSION PACKAGE_VERSION \"+bzr`bzr revno`\"" \
+ @if [ -e .git ]; then \
+ echo "#define ONAK_VERSION \"`git describe --tags --dirty | cut -d - -f 2-`\"" \
>> version.h; \
else \
echo "#define ONAK_VERSION PACKAGE_VERSION" >> version.h; \