This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fad3a81
Showing
17 changed files
with
9,027 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
####################################################################### | ||
# Build Rule for Generating Thesis of Creative Informatics | ||
# | ||
####################################################################### | ||
|
||
# programs | ||
OS=$(shell uname -s) | ||
LATEX=platex | ||
LATEXFLAGS=-interaction=nonstopmode -kanji=utf8 | ||
TETEX2_ENABLED=false | ||
MAKEINDEX=makeindex | ||
BIBTEXFLAGS=-kanji=utf8 | ||
BIBTEX=pbibtex $(BIBTEXFLAGS) | ||
DVIPDFM=dvipdfmx | ||
DVIPDFMFLAGS=-p a4 | ||
EBBFLAGS=-m | ||
EBB=extractbb $(EBBFLAGS) | ||
GLOB_OPTIONS=i | ||
|
||
# files | ||
TARGET=main | ||
FIGDIR=figs | ||
|
||
# dependencies | ||
TEX_FILES=$(glob *.tex */*.tex) | ||
BIB_FILES=$(glob *.bib) | ||
RAWIMG_FILES=$(glob $(FIGDIR)/*.jpg $(FIGDIR)/*.png $(FIGDIR)/*.pdf) | ||
IMG_FILES=$(glob $(FIGDIR)/*.eps) $(RAWIMG_FILES) | ||
XBB_FILES=$(addsuffix .bb, $(removesuffix $(RAWIMG_FILES))) | ||
|
||
.SUBDIRS: $(FIGDIR) | ||
%.bb: %.png | ||
$(EBB) $< | ||
%.bb: %.jpg | ||
$(EBB) $< | ||
%.bb: %.pdf | ||
$(EBB) $< | ||
.PHONY: clean | ||
|
||
TEXDEPS[]=$(TEX_FILES) $(BIB_FILES) $(IMG_FILES) $(XBB_FILES) | ||
LaTeXDocument($(TARGET), $(TARGET)) | ||
.DEFAULT: $(TARGET).pdf $(TARGET).dvi | ||
|
||
|
||
clean: | ||
rm $(glob *.toc *.log *.pdf *.dvi *.fls *.aux *.maf *.mtc *.bbl *.blg) $(XBB_FILES) | ||
|
||
# notify after build | ||
notify(msg)= | ||
if $(equal $(OS), Linux) | ||
notify-send -i gnome-about-logo -t 3000 '<big>Thesis Generator</big>' $(msg) | ||
elseif $(equal $(OS), Darwin) | ||
osascript -e 'display notification "'$(msg)'" with title "Thesis Generator"' | ||
|
||
.BUILD_SUCCESS: | ||
notify("Compiling LaTeX successfly finished.") | ||
.BUILD_FAILURE: | ||
notify("Compile Error Occured!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
######################################################################## | ||
# Permission is hereby granted, free of charge, to any person | ||
# obtaining a copy of this file, to deal in the File without | ||
# restriction, including without limitation the rights to use, | ||
# copy, modify, merge, publish, distribute, sublicense, and/or | ||
# sell copies of the File, and to permit persons to whom the | ||
# File is furnished to do so, subject to the following condition: | ||
# | ||
# THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE FILE OR | ||
# THE USE OR OTHER DEALINGS IN THE FILE. | ||
|
||
######################################################################## | ||
# The standard OMakeroot file. | ||
# You will not normally need to modify this file. | ||
# By default, your changes should be placed in the | ||
# OMakefile in this directory. | ||
# | ||
# If you decide to modify this file, note that it uses exactly | ||
# the same syntax as the OMakefile. | ||
# | ||
|
||
# | ||
# Include the standard installed configuration files. | ||
# Any of these can be deleted if you are not using them, | ||
# but you probably want to keep the Common file. | ||
# | ||
open build/C | ||
open build/OCaml | ||
open build/LaTeX | ||
|
||
# | ||
# The command-line variables are defined *after* the | ||
# standard configuration has been loaded. | ||
# | ||
DefineCommandVars() | ||
|
||
# | ||
# Include the OMakefile in this directory. | ||
# | ||
.SUBDIRS: . |
Oops, something went wrong.