File: Makefile

package info (click to toggle)
xfonts-jmk 3.0-22
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,776 kB
  • sloc: sh: 307; sed: 139; makefile: 43
file content (38 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (24)
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
# Makefile.chardesc: update character descriptions for BDF fonts
# created 1999-01-12 01:14 jmk
# autodate: 1999-01-12 01:35

SHELL=/bin/sh

MV	= mv -f
RM	= rm -f

SRC_DIR		= .
ENC_FILENAME	= Encoding
ENC_FILE	= $(SRC_DIR)/$(ENC_FILENAME)
ENCODING	= $(shell cat $(ENC_FILE))
DESC_TABLE	= descriptions.$(ENCODING).tbl

UTIL_DIR	= ../..
DESC_UTIL	= $(UTIL_DIR)/bdfchardesc.sh -t $(UTIL_DIR)/$(DESC_TABLE)

SRCS		= $(wildcard $(SRC_DIR)/*-$(ENCODING)-*.bdf)
OBJS		= $(SRCS:%=%.new)
BAKS		= $(SRCS:%=%.bak)

describe:
	@echo "Describing characters for encoding '$(ENCODING)' ..."
	@if [ -n "$(ENCODING)" ]; then \
		$(DESC_UTIL) $(SRCS); \
		for i in $(SRCS); do \
			if [ -f $${i}.bak ]; then \
				$(RM) $${i}.bak; \
			fi; \
			$(MV) $${i} $${i}.bak; \
			$(MV) $${i}.new $${i}; \
		done; \
	fi

clean:
	$(RM) $(BAKS) *~