Skip to content

Commit

Permalink
Notes on how to compile this document #54
Browse files Browse the repository at this point in the history
  • Loading branch information
drphilmarshall committed Dec 3, 2015
1 parent 839630a commit 867dae7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/requirements/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DOCUMENT = dc1
#
# All tex files used:
#
DEPENDENCIES=doc_settings.tex doc_macros.tex twinkles1/*.tex
DEPENDENCIES=twinkles1/*.tex
#
# This line helps prevent make from getting confused in the case where you
# have a file named 'clean'.
Expand All @@ -32,6 +32,11 @@ DEPENDENCIES=doc_settings.tex doc_macros.tex twinkles1/*.tex
# Main instructions, including dependencies:
#
main.pdf: $(DOCUMENT).tex $(DEPENDENCIES)
ifeq ($(wildcard doc_macros.tex),)
$(error Science Roadmap doc_macros.tex not linked yet, set environment variable SRM_DIR and run 'make links')
else
@echo "Got macros, compiling latex"
endif
$(TEX) -halt-on-error $(DOCUMENT).tex
$(TEX) -halt-on-error $(DOCUMENT).tex
$(BIB) $(DOCUMENT)
Expand All @@ -58,9 +63,9 @@ vclean: clean
#
testenv:
ifdef SRM_DIR
@echo "SRM environment varable SRM_DIR = ${SRM_DIR}"
@echo "SRM environment variable SRM_DIR = ${SRM_DIR}"
else
$(error SRM environment varable SRM_DIR is not set)
$(error Science Roadmap environment variable SRM_DIR is not set)
endif
#
links: testenv
Expand Down
17 changes: 17 additions & 0 deletions doc/requirements/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Twinkles Requirements Documents

Currently just Twinkles 1. This will form part of a larger DC1
requirements document, assembled by the SSim working group. As a
result, and in anticipation, the Twinkles 1 source files are stored
in their own sub-directory, and compiled into a dummy master document
called `dc1.tex`.

### Compiling

The documents use the Science Roadmap macros and settings. To link the
required files to this directory, do
```
setenv SRM_DIR <path_to_Science_Roadmap_repo>
make links
```
Then, compile `dc1.pdf` with `make`.

0 comments on commit 867dae7

Please sign in to comment.