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

all:		$(BIN)

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/; \
		./$(BIN) $$i >> $$d/$$i; \
	done

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

mrproper:	clean

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