summaryrefslogtreecommitdiff
path: root/info/lshort/polish/src/Makefile
blob: f7ca05ade3c2a4b13b3f76ab66dfdb582f69c76b (plain)
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
54
55
56
57
58
59
60
61
62
63
# -- make --
# Tomasz Przechlewski <t.przechlewski@gust.org.pl>.
# Copyright 2006. Mo¿na rozpowszechniaæ na licencji GNU.
#
llatex=platex lshort2e.tex
# http://www.ia.pw.edu.pl/~wujek/tex/idx/plmindex.zip
lindex=plmindex lshort2e
pltex=pdfplatex lshort2e.tex
files=biblio.tex contrib.tex custom.tex graphic.tex math.tex\
  overview.tex spec.tex things.tex title.tex typeset.tex
A5odd=lshort2e-a51
A5even=lshort2e-a52

help:
	@echo 'Makefile [ps | pdf | 1ps | 1pdf | clean | xclean ]'
	@echo '   gdzie: ps = Zamieñ na PS w formacie A5; 1ps =  Zamieñ na PS;'
	@echo '          pdf = Zamieñ na PDF u¿ywaj±c pdftexa; 1pdf =  Zamieñ na PDF;'
	@echo '          clean lub xclean = usuñ pliki tymczasowe'

## Zamieñ na PS:
1ps:
	$(llatex) &&  $(llatex) && dvips -x800 -olshort2e.ps lshort2e.dvi

## Zamieñ na plik PostScriptowy do wydruku w formacie broszury A5  
ps:
	$(llatex) && $(llatex) && $(lindex) && $(llatex) && \
		$(llatex) && dvips -x800 -olshort2e.ps lshort2e.dvi && \
		psbook lshort2e.ps out.ps && \
		pstops "4:0L(27.8cm,-1.8cm)+1L(27.8cm,13.9cm)" out.ps $(A5odd).ps && \
		pstops "4:2L(27.8cm,-1.8cm)+3L(27.8cm,13.9cm)" out.ps $(A5even).ps && \
		ps2pdf -sPAPERSIZE=a4 $(A5odd).ps && ps2pdf -sPAPERSIZE=a4 $(A5even).ps
		#rm -rf $(A5odd).ps $(A5even).ps 

## Zamieñ na PDF:
1pdf:
	$(pltex)

## Zamieñ na dokument w formacie PDF za pomoc± programu pdftex:
pdf:
	$(pltex) &&  $(pltex) &&  $(lindex) && $(pltex) && \
		mv lshort2e.out lshort2e.rep && \
		awk -f ./repbkmrs.awk lshort2e.rep > lshort2e.out && \
		$(pltex)

## Usuñ pliki tymczasowe:
clean:
	rm -rf lshort2e.{dvi,log,idx,exa,rep,toc,lof,ilg,lot,out,ind} out.ps a5-p*.ps *.aux *~ *.bak

xclean: clean
	rm -rf missfont.log lshort2e.{pdf,ps}

## Podaj wielko¶æ ksi±¿ki w znakach:
size:
	wc --chars $(files)

draft: 1ps

## ;;;;

checkurls:
	grep '\(\\CTAN\|\\url\)' *.tex
	
## -- koniec --