OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.communication/] [hibi/] [3.0/] [doc/] [Datasheet/] [Latex/] [makefile] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
###################################################
2
# General purpose Makefile for LaTeX-Documents    #
3
#                                                 #
4
# Based on the makefile written by Daniel Ciaglia #
5
# http://www.sigterm.de/misc/src/Makefile-latex   #
6
#                                                 #
7
# Modified by Tero Kangas 2005/09/05              #
8
###################################################
9
 
10
 
11
##### Variables #############
12
#############################
13
 
14
# Basename for the document (without postfix '.tex')
15
TARGET=hibi_datasheet
16
 
17
# Title & Author for pdf
18
#TITLE=PhD Thesis, TUT 2006
19
#AUTHOR=Erno Salminen
20
 
21
# .tex Source files
22
SRC= hibi_datasheet.tex \
23
 hibi_datasheet_ref.bib
24
 
25
# ATTENTION!
26
# File-extensions to delete recursive from here
27
#EXTENSION=aux toc idx ind ilg log out lof lot lol bbl blg
28
EXTENSION=aux toc log lof lot lol bbl blg
29
 
30
#############################
31
#############################
32
 
33
##### Targets ###############
34
#############################
35
 
36
all: ${TARGET}.dvi
37
 
38
ps: ${TARGET}.ps
39
 
40
pdf: ${TARGET}.pdf
41
 
42
ps_2on1: $(TARGET)_2on1.ps
43
 
44
pdf_2on1: $(TARGET)_2on1.pdf
45
 
46
 
47
##################################################
48
##################################################
49
# HTML (latex2html is not cygwin currently so this does not work)
50
html: ${SRC}
51
        latex ${TARGET}.tex
52
        bibtex ${TARGET}
53
        latex ${TARGET}.tex
54
        latex2html \
55
        -short_index -split 3 \
56
        -dir www -numbered_footnotes -no_footnode \
57
        -antialias -html_version 4.0 \
58
        -white ${TARGET}.tex
59
 
60
# PS
61
${TARGET}.ps: ${TARGET}.dvi
62
        dvips -o ${TARGET}.ps ${TARGET}.dvi
63
 
64
# PDF
65
#${TARGET}.pdf: ${SRC}
66
#       tex2pdf --title="${TITLE}" --author="${AUTHOR}" ${TARGET}.tex
67
${TARGET}.pdf: ${TARGET}.ps
68
#       ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.3 -dSubsetFonts=true -dEmbedAllFonts=true $(TARGET).ps $(TARGET).pdf
69
        ps2pdf -dPDFSETTINGS=/printer $(TARGET).ps $(TARGET).pdf
70
 
71
# DVI
72
${TARGET}.dvi: ${SRC}
73
        echo "Running latex..."
74
        latex ${TARGET}.tex
75
        echo "Running bibtex..."
76
        bibtex ${TARGET}
77
        echo "Rerunning latex...."
78
        latex ${TARGET}.tex
79
        latex_count=5 ; \
80
        while egrep -s 'Rerun (LaTeX|to get cross-references right)' ${TARGET}.log && [ $$latex_count -gt 0 ] ;\
81
            do \
82
              echo "Rerunning latex...." ;\
83
              latex ${TARGET}.tex ;\
84
              latex_count=`expr $$latex_count - 1` ;\
85
            done
86
 
87
# 2on1 PS
88
$(TARGET)_2on1.ps: ${TARGET}.ps
89
        psnup -2 ${TARGET}.ps > ${TARGET}_2on1.ps
90
 
91
# 2on1 PDF
92
$(TARGET)_2on1.pdf: $(TARGET)_2on1.ps
93
        ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.3 -dSubsetFonts=true -dEmbedAllFonts=true ${TARGET}_2on1.ps ${TARGET}_2on1.pdf
94
 
95
# TAR
96
dist:   pdf
97
        tar -zcf thesis.tar.gz $(SRC) *.bib *.bst *.cls Fig/Eps/*.eps makefile $(TARGET).pdf
98
 
99
# Clean
100
clean:
101
        @for EXT in ${EXTENSION}; \
102
        do \
103
        find `pwd` -name \*\.$${EXT} -exec rm -v \{\} \; ;\
104
        done
105
        @rm -fv ${TARGET}.dvi
106
        @rm -fv ${TARGET}.pdf
107
        @rm -fv ${TARGET}.ps
108
        @rm -fv ${TARGET}_2on1.ps
109
        @rm -fv ${TARGET}_2on1.pdf
110
        @rm -rfv auto
111
        @rm -fv *~
112
        @rm -fv www/*\.*

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.