git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15618 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
42
doc/Makefile
42
doc/Makefile
@ -1,5 +1,6 @@
|
||||
# Makefile for LAMMPS documentation
|
||||
|
||||
SHELL = /bin/bash
|
||||
SHA1 = $(shell echo $USER-$PWD | python utils/sha1sum.py)
|
||||
BUILDDIR = /tmp/lammps-docs-$(SHA1)
|
||||
RSTDIR = $(BUILDDIR)/rst
|
||||
@ -19,15 +20,21 @@ endif
|
||||
SOURCES=$(wildcard src/*.txt)
|
||||
OBJECTS=$(SOURCES:src/%.txt=$(RSTDIR)/%.rst)
|
||||
|
||||
.PHONY: help clean-all clean html pdf venv
|
||||
.PHONY: help clean-all clean html pdf old venv
|
||||
|
||||
# ------------------------------------------
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make HTML version of documentation using Sphinx"
|
||||
@echo " pdf to make Manual.pdf and Developer.pdf"
|
||||
@echo " txt2html to build txt2html tool"
|
||||
@echo " clean to remove all generated RST files"
|
||||
@echo " clean-all to reset the entire build environment"
|
||||
@echo " html create HTML doc pages in html dir"
|
||||
@echo " pdf create Manual.pdf and Developer.pdf in this dir"
|
||||
@echo " old create old-style HTML doc pages in old dir"
|
||||
@echo " fetch fetch HTML and PDF files from LAMMPS web site"
|
||||
@echo " clean remove all intermediate RST files"
|
||||
@echo " clean-all reset the entire build environment"
|
||||
@echo " txt2html build txt2html tool"
|
||||
|
||||
# ------------------------------------------
|
||||
|
||||
clean-all:
|
||||
rm -rf $(BUILDDIR)/* utils/txt2html/txt2html.exe
|
||||
@ -35,8 +42,6 @@ clean-all:
|
||||
clean:
|
||||
rm -rf $(RSTDIR)
|
||||
|
||||
txt2html: utils/txt2html/txt2html.exe
|
||||
|
||||
html: $(OBJECTS)
|
||||
@(\
|
||||
. $(VENV)/bin/activate ;\
|
||||
@ -63,6 +68,27 @@ pdf: utils/txt2html/txt2html.exe
|
||||
mv developer.pdf ../../Developer.pdf; \
|
||||
)
|
||||
|
||||
old: utils/txt2html/txt2html.exe
|
||||
@rm -rf old
|
||||
@mkdir old; mkdir old/Eqs; mkdir old/JPG; mkdir old/PDF
|
||||
@cd src; ../utils/txt2html/txt2html.exe -b *.txt; \
|
||||
mv *.html ../old; \
|
||||
cp Eqs/*.jpg ../old/Eqs; \
|
||||
cp JPG/* ../old/JPG; \
|
||||
cp PDF/* ../old/PDF;
|
||||
|
||||
fetch:
|
||||
@rm -rf html2 Manual.pdf Developer.pdf
|
||||
@curl -s -o Manual.pdf http://lammps.sandia.gov/doc/Manual.pdf
|
||||
@curl -s -o Developer.pdf http://lammps.sandia.gov/doc/Developer.pdf
|
||||
# @curl -s -o lammps-doc.tar.gz http://lammps.sandia.gov/tars/lammps-doc.tar.gz
|
||||
# @tar xzf lammps-doc.tar.gz
|
||||
# @rm -f lammps-doc.tar.gz
|
||||
|
||||
txt2html: utils/txt2html/txt2html.exe
|
||||
|
||||
# ------------------------------------------
|
||||
|
||||
utils/txt2html/txt2html.exe: utils/txt2html/txt2html.cpp
|
||||
g++ -O -Wall -o $@ $<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user