aboutsummaryrefslogtreecommitdiffstats
path: root/troff/troff.d/font/devhtml/Makefile.mk
blob: 665b77049bb163bfe4e85ffe675b53b77b5f8516 (plain) (blame)
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
BIN=		makefont
OBJS=		$(BIN).o
FONTS=		R I B BI C CW CR CI CB H HI HB S

.SUFFIXES:	.in
.in: ${BIN}
	cat $< > $@
	./${BIN} $@ >> $@

all:		$(BIN) ${FONTS}

install:
	d=$(ROOT)$(FNTDIR)/devhtml; test -d $$d || mkdir $$d; \
	install -m 644 CHAR DESC $$d/; \
	echo charset >> $$d/DESC; \
	sed '1,2d;s/[[:space:]].*//' charset >> $$d/DESC; \
	for i in $(FONTS); do \
		install -m 644 $$i $$d/; \
	done

clean:
		rm -rf $(BIN) $(OBJS) $(FONTS)

mrproper:	clean

$(BIN):		$(OBJS)
		$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJS) -o $@