Permalink
Browse files

Convince SCons and Doxygen to output doc under the targets directory.

  • Loading branch information...
1 parent 8f67322 commit 39c24c9396d535f5dc54b0165634ac7261e1f543 @jaredhoberock jaredhoberock committed Mar 27, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 SConscript
  2. +1 −1 doc/thrust.dox
View
@@ -34,6 +34,8 @@ for item in my_env.RecursiveGlob('*', '#examples', 'targets'):
my_env.Zip('examples-{0}.{1}.zip'.format(major,minor), 'examples', chdir = 1)
# generate documentation
+# note that thrust.dox instructs doxygen to output to the targets directory
public_headers = my_env.RecursiveGlob('*.h', '#thrust', exclude='detail')
-my_env.Command('doc/html', public_headers, 'doxygen doc/thrust.dox')
+thrust_docs = my_env.Command('doc/html', public_headers, 'doxygen doc/thrust.dox')
+my_env.Alias('doc', thrust_docs)
View
@@ -30,7 +30,7 @@ PROJECT_NUMBER =
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY = doc
+OUTPUT_DIRECTORY = targets/doc
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this

0 comments on commit 39c24c9

Please sign in to comment.