From 30dd0765df3aff1b4f6324269062601c6fdb1e07 Mon Sep 17 00:00:00 2001 From: chipforge <hsank@nospam.chipforge.org> Date: Sat, 19 Jan 2019 09:32:03 +0100 Subject: [PATCH] [BUILD] Update GNU Makefile system hierarchical for Document building --- Documents/LaTeX/GNUmakefile | 94 ++++++++++++++++++++++++++++++ Documents/LaTeX/teststructures.tex | 62 ++++++++++++++++++++ GNUmakefile | 11 ++-- 3 files changed, 162 insertions(+), 5 deletions(-) create mode 100644 Documents/LaTeX/GNUmakefile create mode 100644 Documents/LaTeX/teststructures.tex diff --git a/Documents/LaTeX/GNUmakefile b/Documents/LaTeX/GNUmakefile new file mode 100644 index 0000000..8ed680b --- /dev/null +++ b/Documents/LaTeX/GNUmakefile @@ -0,0 +1,94 @@ +# ************ LibreSilicon's 1st TestWafer ******************* +# +# Organisation: Chipforge +# Germany / European Union +# +# Profile: Chipforge focus on fine System-on-Chip Cores in +# Verilog HDL Code which are easy understandable and +# adjustable. For further information see +# www.chipforge.org +# there are projects from small cores up to PCBs, too. +# +# File: PearlRiver/Documents/LaTeX/GNUmakefile +# +# Purpose: Makefile for Document Generation in LaTeX +# +# ************ GNU Make 3.80 Source Code **************** +# +# //////////////////////////////////////////////////////////////// +# +# Copyright (c) 2018 by chipforge <hsank@nospam.chipforge.org> +# All rights reserved. +# +# This Standard Cell Library is licensed under the Libre Silicon +# public license; you can redistribute it and/or modify it under +# the terms of the Libre Silicon public license as published by +# the Libre Silicon alliance, either version 1 of the License, or +# (at your option) any later version. +# +# This design is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the Libre Silicon Public License for more details. +# +# //////////////////////////////////////////////////////////////////// + +# project name + +PROJECT = PearlRiver + +# directory pathes + +DOCUMENTSDIR = . +OUTPUTDIR = .. + +# tool variables + +CAT ?= @cat +ECHO ?= @echo # -e +MV ?= mv +TAR ?= rm -f +TAR ?= tar -zh +DATE := $(shell date +%Y%m%d) + +# project tools + +LATEX ?= pdflatex -output-directory $(OUTPUTDIR) +RUBBER ?= rubber + +# ---------------------------------------------------------------- +# DEFAULT TARGETS +# ---------------------------------------------------------------- + +# display help screen if no target is specified + +.PHONY: help +help: + $(ECHO) "-------------------------------------------------------------------" + $(ECHO) " available targets:" + $(ECHO) "-------------------------------------------------------------------" + $(ECHO) "" + $(ECHO) " help - print this help screen" + $(ECHO) " clean - clean up all intermediate files" + $(ECHO) "" + $(ECHO) " doc - compile documentation" + $(ECHO) "" + + +.PHONY: clean +clean: + $(RM) *.aux *.idx *.log *.toc *.out + +# ---------------------------------------------------------------- +# DOCUMENTATION TARGETS +# ---------------------------------------------------------------- + +.PHONY: doc +doc: pdf clean + +.PHONY: pdf +pdf: $(PROJECT).tex revision.tex + $(LATEX) $< + +%.pdf: %.tex + $(RUBBER) -m pdftex $< diff --git a/Documents/LaTeX/teststructures.tex b/Documents/LaTeX/teststructures.tex new file mode 100644 index 0000000..7500e34 --- /dev/null +++ b/Documents/LaTeX/teststructures.tex @@ -0,0 +1,62 @@ +%% ************ LibreSilicon's 1st TestWafer ******************* +%% +%% Organisation: Chipforge +%% Germany / European Union +%% +%% Profile: Chipforge focus on fine System-on-Chip Cores in +%% Verilog HDL Code which are easy understandable and +%% adjustable. For further information see +%% www.chipforge.org +%% there are projects from small cores up to PCBs, too. +%% +%% File: PearlRiver/Documents/LaTeX/teststructures.tex +%% +%% Purpose: Chapter File for Test Structures +%% +%% ************ LaTeX with circdia.sty package *************** +%% +%% /////////////////////////////////////////////////////////////////// +%% +%% Copyright (c) 2018 by chipforge <hsank@nospam.chipforge.org> +%% All rights reserved. +%% +%% This Standard Cell Library is licensed under the Libre Silicon +%% public license; you can redistribute it and/or modify it under +%% the terms of the Libre Silicon public license as published by +%% the Libre Silicon alliance, either version 1 of the License, or +%% (at your option) any later version. +%% +%% This design is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% See the Libre Silicon Public License for more details. +%% +%% /////////////////////////////////////////////////////////////////// +\section{Test Structures} + +\subsection{Metall and Poly Resistance} + +% wells +% stripes +% pad + +\subsection{Contact and Via Resistance} + +\subsection{Layer Capacitance} + +\subsection{Diodes} + +% parasitic diodes, Zener diodes + +\subsection{p-channel and n-channels Transistors} + +% p-/n- Tables + +\subsection{Bipolar Junctions Transistors} + +\subsection{Experimental} + +% High-Voltage Fets +% SONOS + +\clearpage diff --git a/GNUmakefile b/GNUmakefile index 16b2d0d..fbf06f9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -54,7 +54,7 @@ DATE := $(shell date +%Y%m%d) # project tools -LATEX ?= pdflatex -output-directory $(DOCUMENTSDIR) $(OUTPUTDIR) +# ?? # default @@ -96,13 +96,14 @@ dist: clean .PHONY: clean clean: $(ECHO) "---- clean up all intermediate files ----" - $(MAKE) -C $(DOCUMENTSDIR)/LaTeX -f build.mk $@ + $(MAKE) -C $(DOCUMENTSDIR)/LaTeX -f GNUmakefile $@ # ---------------------------------------------------------------- # DOCUMENTATION TARGETS # ---------------------------------------------------------------- .PHONY: doc -doc: $(DOCUMENTSDIR)/LaTeX/$(PROJECT).tex $(DOCUMENTSDIR)/LaTeX/revision.tex - TEXINPUTS=$$TEXINPUT:./$(DOCUMENTSDIR)/LaTeX $(LATEX) $(<F) -# TEXINPUTS=::../../circdia xelatex PearlRiver.tex +doc: + $(MAKE) -C $(DOCUMENTSDIR)/LaTeX -f GNUmakefile $@ + + -- GitLab