Skip to content

Commit

Permalink
Added docs target for generating doxygen.
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Apr 17, 2009
1 parent e4f01d0 commit 76c1bda
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ doc/protocol-binary-range.txt
doc/protocol-binary.txt
/sizes
/version.m4
/version.num
/testapp
/doc/doxy
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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)/*~
8 changes: 5 additions & 3 deletions version.sh
Original file line number Diff line number Diff line change
@@ -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.