Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ots-doctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
ots-doctools
Commits
e1732e04
Commit
e1732e04
authored
6 years ago
by
Karl Fogel
Browse files
Options
Downloads
Patches
Plain Diff
Adjust for "otsltx" -> "ots-doctools" rename
parent
abd9face
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.docspecific
+29
-29
29 additions, 29 deletions
Makefile.docspecific
README.md
+1
-1
1 addition, 1 deletion
README.md
with
30 additions
and
30 deletions
Makefile.docspecific
+
29
−
29
View file @
e1732e04
# This is a document-specific Makefile. Matters that are specific to
# this doc can be put here. More general LaTeX building targets can
# go in OTS
LTX
DIR/Makefile, which this one calls.
# go in OTS
_DOCTOOLS_
DIR/Makefile, which this one calls.
# By default, we build all .ltx files in this dir
SOURCE
=
$(
wildcard
*
.ltx
)
TARGETS
=
$(
SOURCE:.ltx
=
.pdf
)
### Try to find ots
ltx
directory. We look in the current dir, then
### for a $OTS
LTX
DIR environment variable, then $OTSDIR/forms/latex,
### then ~/OTS/forms/latex, then /usr/local/src/ots
ltx
# If there's a local ots
ltx
dir, use it
ifneq
("$(wildcard ots
ltx
)","")
OTS
LTXDIR
=
otsltx
### Try to find ots
-doctools
directory. We look in the current dir, then
### for a $OTS
_DOCTOOLS_
DIR environment variable, then $OTSDIR/forms/latex,
### then ~/OTS/forms/latex, then /usr/local/src/ots
-doctools
# If there's a local ots
-doctools
dir, use it
ifneq
("$(wildcard ots
-doctools
)","")
OTS
_DOCTOOLS_DIR
=
ots-doctools
else
# Otherwise maybe one's defined in the environment
ifndef
OTS
LTX
DIR
ifndef
OTS
_DOCTOOLS_
DIR
ifneq
("$(wildcard $(OTSDIR)/forms/latex)","")
OTS
LTX
DIR
=
"
$(
OTSDIR
)
/forms/latex"
OTS
_DOCTOOLS_
DIR
=
"
$(
OTSDIR
)
/forms/latex"
else
ifneq
("$(wildcard ~/OTS/forms/latex)","")
OTS
LTX
DIR
=
"~/OTS/forms/latex"
OTS
_DOCTOOLS_
DIR
=
"~/OTS/forms/latex"
else
ifneq
("$(wildcard /usr/local/src/ots
ltx
)","")
OTS
LTX
DIR
=
"/usr/local/src/ots
ltx
"
ifneq
("$(wildcard /usr/local/src/ots
-doctools
)","")
OTS
_DOCTOOLS_
DIR
=
"/usr/local/src/ots
-doctools
"
endif
endif
endif
...
...
@@ -30,10 +30,10 @@ endif
endif
# If we didn't find the OTS Latex stuff, grab it from GitHub
ifndef
OTS
LTX
DIR
#$(error Cannot find
OTSLTX
materials. Please install
OTSLTX, set OTSLTX
DIR, and/or put
OTSLTX
in this directory.)
$(shell git submodule add https
:
//github.com/OpenTechStrategies/ots
ltx
)
OTS
LTXDIR
=
otsltx
ifndef
OTS
_DOCTOOLS_
DIR
#$(error Cannot find
ots-doctools
materials. Please install
ots-doctools, set OTS_DOCTOOLS_
DIR, and/or put
ots-doctools
in this directory.)
$(shell git submodule add https
:
//github.com/OpenTechStrategies/ots
-doctools
)
OTS
_DOCTOOLS_DIR
=
ots-doctools
endif
all
:
DEPS ${TARGETS}
...
...
@@ -42,25 +42,25 @@ all: DEPS ${TARGETS}
.PHONY
:
DEPS
DEPS
:
otsreport.cls ots.sty otslogo.pdf
otsreport.cls
:
$(OTS
LTX
DIR)/otsreport.cls
ln
-s
$(
OTS
LTX
DIR
)
/otsreport.cls
otsreport.cls
:
$(OTS
_DOCTOOLS_
DIR)/otsreport.cls
ln
-s
$(
OTS
_DOCTOOLS_
DIR
)
/otsreport.cls
ots.sty
:
$(OTS
LTX
DIR)/ots.sty
ln
-s
$(
OTS
LTX
DIR
)
/ots.sty
ots.sty
:
$(OTS
_DOCTOOLS_
DIR)/ots.sty
ln
-s
$(
OTS
_DOCTOOLS_
DIR
)
/ots.sty
otslogo.pdf
:
$(OTS
LTX
DIR)/otslogo.pdf
ln
-s
$(
OTS
LTX
DIR
)
/otslogo.pdf
otslogo.pdf
:
$(OTS
_DOCTOOLS_
DIR)/otslogo.pdf
ln
-s
$(
OTS
_DOCTOOLS_
DIR
)
/otslogo.pdf
# Use the
OTSLTX
Makefile to turn .ltx into .pdf files
# Use the
ots-doctools
Makefile to turn .ltx into .pdf files
%.pdf
:
%.ltx
$(
MAKE
)
-f
${
OTS
LTX
DIR
}
/Makefile
$@
$(
MAKE
)
-f
${
OTS
_DOCTOOLS_
DIR
}
/Makefile
$@
clean
:
rm
-f
otsreport.cls ots.sty otslogo.pdf
@
# Delete PDFs that we do not care enough about to check into the repo
@$(
foreach x,
${
TARGETS
}
, git status
-s
${
x
}
|
grep
-q
"M
${
x
}
"
||
rm
-f
${
x
};)
$(
MAKE
)
-f
${
OTS
LTX
DIR
}
/Makefile clean
@
# Remove ots
ltx
submodule
git submodule deinit
-f
ots
ltx
rm
-rf
.git/modules/ots
ltx
git
rm
-f
ots
ltx
$(
MAKE
)
-f
${
OTS
_DOCTOOLS_
DIR
}
/Makefile clean
@
# Remove ots
-doctools
submodule
git submodule deinit
-f
ots
-doctools
rm
-rf
.git/modules/ots
-doctools
git
rm
-f
ots
-doctools
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
e1732e04
...
...
@@ -15,7 +15,7 @@ difficulty doing so.
If you are building a document from an OTS repository, the Makefile
that came with that document should either find your installation of
ots
ltx
or do a hyperlocal install in a subdir of that document's
ots
-doctools
or do a hyperlocal install in a subdir of that document's
directory. The doc should build smoothly from there based on the
doc-specific makefile in the document's repository.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment