Skip to content

Commit

Permalink
Documentation: Moved generated readme files to doc/output/
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 20, 2012
1 parent 61452a3 commit 337d94e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
8 changes: 8 additions & 0 deletions distrib/autobuild.py
Expand Up @@ -283,6 +283,13 @@ def generate_apidoc():
print "\n-=-=- JHEXEN DOCS -=-=-"
os.chdir(os.path.join(builder.config.DISTRIB_DIR, '../doomsday/plugins/jhexen'))
system_command('doxygen jhexen.doxy >/dev/null')


def generate_readme():
"""Run Amethyst to generate readme documentation."""
git_pull()
os.chdir(os.path.join(builder.config.DISTRIB_DIR, '../doomsday/doc/output'))
system_command('make')


def web_path():
Expand Down Expand Up @@ -373,6 +380,7 @@ def sorted_commands():
'purge': purge_obsolete,
'cleanup': dir_cleanup,
'apidoc': generate_apidoc,
'readme': generate_readme,
'web_init': web_init,
'web_update': web_update,
'help': show_help
Expand Down
15 changes: 0 additions & 15 deletions doomsday/doc/Makefile

This file was deleted.

File renamed without changes.
16 changes: 16 additions & 0 deletions doomsday/doc/output/Makefile
@@ -0,0 +1,16 @@
sources := $(wildcard ../*.ame)
main_source := ../readme.ame

all: doomsday.6 Read\ Me.rtf readme.txt

doomsday.6: $(sources)
amethyst -dMAN -dUNIX -odoomsday.6 $(main_source)

Read\ Me.rtf: $(sources)
amethyst -dRTF -dMACOSX -oRead\ Me.rtf $(main_source)

readme.txt: $(sources)
amethyst -dTXT -dWIN32 -oreadme.txt $(main_source)

clean:
rm -f doomsday.6 Read\ Me.rtf readme.txt

0 comments on commit 337d94e

Please sign in to comment.