blob: f3b2752d4f34e9553b840d406cc33e7079ae96b0 (
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
|
# vim:ts=4:sw=4
#
# Copyright (c) 2008-2009 solvethis
# Copyright (c) 2010-2012 Casper Ti. Vector
# Public domain.
# Ö±½ÓʹÓà pkulogo.eps ×÷ΪÂÛÎÄ·âÃæͼƬҲÊÇ¿ÉÐеģ¬
# ÒòΪËüʹÓÃµÄ Times-Bold ×ÖÌåÒ»°ã²Ù×÷ϵͳ¶¼ÓС£
# ÕâÑùÓà LaTeX + dvipdfm »ò XeLaTeX ·½Ê½ÊÇ¿ÉÒÔ±àÒë³É¹¦µÄ¡£
# ¿ÉÒÔʹÓà ghostscript ½« eps Îļþת»»Îª ºÍ pdf ¸ñʽ£¬
# Ôò pdfLaTeX ·½Ê½Ò²¿ÉÒÔ±àÒë³É¹¦¡£
OPTS = -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
WIDTHOPT = -dDEVICEWIDTHPOINTS=
HEIGHTOPT = -dDEVICEHEIGHTPOINTS=
OUTPUTOPT = -sOutputFile=
# Çø·ÖÊÇ Windows »·¾³»¹ÊÇÀà UNIX »·¾³¡£
ifdef PATH
GS = gs
RM = rm -f
else
GS = gswin32c
RM = del
endif
all: pkulogo.pdf pkuword.pdf
pkulogo.pdf: pkulogo.eps
$(GS) $(OPTS) $(WIDTHOPT)400 $(HEIGHTOPT)400 $(OUTPUTOPT)$@ -f $<
pkuword.pdf: pkuword.eps
$(GS) $(OPTS) $(WIDTHOPT)525 $(HEIGHTOPT)150 $(OUTPUTOPT)$@ -f $<
clean:
$(RM) pkulogo.pdf pkuword.pdf
|