Permalink
Browse files

Added docs target for generating doxygen.

  • Loading branch information...
1 parent e4f01d0 commit 76c1bda378dff025718e617e782b65f1456fd22d @dustin dustin committed Apr 17, 2009
Showing with 9 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 Makefile.am
  3. +5 −3 version.sh
View
@@ -34,5 +34,6 @@ doc/protocol-binary-range.txt
doc/protocol-binary.txt
/sizes
/version.m4
+/version.num
/testapp
/doc/doxy
View
@@ -92,5 +92,8 @@ test: memcached-debug sizes testapp
done \
else :; fi
+docs:
+ (cat Doxyfile ; echo "PROJECT_NUMBER=`cat version.num`") | doxygen -
+
dist-hook:
rm -f $(distdir)/*/*~ $(distdir)/t/lib/*~ $(distdir)/*~
View
@@ -1,8 +1,10 @@
#!/bin/sh
-if git describe > version.tmp
+if git describe > version.num.tmp
then
- echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.tmp`])" \
+ mv version.num.tmp version.num
+ echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.num`])" \
> version.m4
+else
+ rm version.num.tmp
fi
-rm version.tmp

0 comments on commit 76c1bda

Please sign in to comment.