File: Makefile.sub

package info (click to toggle)
jgroff 0.100-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,896 kB
  • ctags: 6,984
  • sloc: cpp: 55,956; ansic: 5,480; yacc: 2,957; asm: 1,866; makefile: 1,099; sh: 409; perl: 397; sed: 123
file content (48 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | download | duplicates (2)
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
DEV=nippon
FONTS=R I B BI
WFONTS=M G
ALLFONTS=$(FONTS) $(WFONTS)
DEVFILES=$(ALLFONTS) DESC
CLEANADD=$(ALLFONTS) DESC

RES=240
CPI=10
LPI=6

PROG=createM
OBJS=createM.o
CSRCS=createM.c

$(FONTS): R.proto
	@echo Making $@
	@-rm -f $@
	@(charwidth=`expr $(RES) / $(CPI)` ; \
 	 sed -e "s/^name [A-Z]*$$/name $@/" \
	     -e "s/^\\([^	]*\\)	[0-9]+	/\\1	$$charwidth	/" \
	     -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
	     -e "s/^internalname .*$$/internalname $@/" \
	     -e "/^internalname/s/BI/3/" \
	     -e "/^internalname/s/B/2/" \
	     -e "/^internalname/s/I/1/" \
	     -e "/^internalname .*[^ 0-9]/d" \
	     $(srcdir)/R.proto >$@)

M: M.header createM
	@echo Making M
	@-rm -f M
	@./createM -euc 48 0 < M.header > M

G: M
	@echo Making G
	@-rm -f G
	@sed -e 's/name M/name G/' \
	    -e 's/internalname 4/internalname 5/' M > G
		
DESC: DESC.proto
	@echo Making $@
	@-rm -f $@
	@sed -e "s/^res .*$$/res $(RES)/" \
	    -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
	    -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
	    -e "s/^fonts .*$$/fonts `set $(ALLFONTS); echo $$#` $(ALLFONTS)/" \
	    $(srcdir)/DESC.proto >$@