-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 2.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# This Makefile can be used to build the sshrc-insight class and
# package it for distribution on CTAN.
#
# Copyright 2024 Tristan Miller
#
# This work may be distributed and/or modified under the
# conditions of the LaTeX Project Public License, either version 1.3c
# of this license or (at your option) any later version.
# The latest version of this license is in
# https://www.latex-project.org/lppl.txt
# and version 1.3c or later is part of all distributions of LaTeX
# version 2008 or later.
#
PDFLATEX=pdflatex
CTANIFY=ctanify
TEXDIR=tex/latex/sshrc-insight
DOCDIR=doc/latex/sshrc-insight
GENERATED_EXTENSIONS=aux bbl bcf blg idx log out pdf run.xml synctex.gz gls ilg toc
TEMPLATE_PROPOSAL=insight_proposal.tex insight_proposal.bib budget_justification.tex career_interruptions.tex detailed_description.tex exclusion_of_potential_reviewers.tex expected_outcomes.tex knowledge_mobilization_plan.tex list_of_references.tex multi-interdisciplinary_evaluation.tex previous_critiques.tex research_contributions.tex research-creation_support_material.tex research_team.tex summary.tex
SSHRC_INS_FILES=sshrc-insight.cls $(TEMPLATE_PROPOSAL)
# Build the class, template insight_proposal, and documentation
all: insight_proposal.pdf sshrc-insight.pdf
# Extract the source files from sshrc-insight.dtx
$(SSHRC_INS_FILES): sshrc-insight.ins sshrc-insight.dtx
$(PDFLATEX) sshrc-insight.ins
# Build the template insight_proposal
insight_proposal.pdf: $(SSHRC_INS_FILES)
$(PDFLATEX) insight_proposal.tex
$(PDFLATEX) insight_proposal.tex
# Build the documentation
sshrc-insight.pdf: sshrc-insight.dtx
$(PDFLATEX) sshrc-insight.dtx
$(PDFLATEX) sshrc-insight.dtx
$(PDFLATEX) sshrc-insight.dtx
# Package sshrc for distribution on CTAN
sshrc-insight.tar.gz dist ctanify: insight_proposal.pdf sshrc-insight.pdf README.md
$(CTANIFY) sshrc-insight.ins sshrc-insight.pdf insight_proposal.pdf README.md insight_proposal.tex=$(DOCDIR) $(foreach file,$(TEMPLATE_PROPOSAL),$(file)=$(DOCDIR))
# Remove all generated files
clean:
$(RM) sshrc-insight.cls sshrc-insight.glo sshrc-insight.hd sshrc-insight.tar.gz $(SSHRC_INS_FILES) $(foreach ext,$(GENERATED_EXTENSIONS),sshrc-insight.$(ext)) $(foreach ext,$(GENERATED_EXTENSIONS),$(foreach file,$(TEMPLATE_PROPOSAL),$(basename $(file)).$(ext)))
.PHONY: clean dist ctanify