63 lines
2.0 KiB
Makefile
Executable File
63 lines
2.0 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# Include the configuration.
|
|
-include Makefile.cfg
|
|
#*****************************************************************************#
|
|
# Project main information. #
|
|
#*****************************************************************************#
|
|
# Project name and description.
|
|
NAME := refc
|
|
DESC := The FONTCHARACTER reference.
|
|
|
|
# Project version.
|
|
MAJOR := 0
|
|
MINOR := 1
|
|
INDEV := yes
|
|
|
|
# Project version string.
|
|
VERSION := $(MAJOR).$(MINOR)$(if $(INDEV),-indev)
|
|
#*****************************************************************************#
|
|
# Project directories #
|
|
#*****************************************************************************#
|
|
# Reference directory.
|
|
REFDIR := ./reference
|
|
|
|
# Sets (output) directory.
|
|
SETDIR := ./sets
|
|
#*****************************************************************************#
|
|
# Sets-related information #
|
|
#*****************************************************************************#
|
|
# List the sets.
|
|
SETS := $(shell tools/listsets.py --refpath $(REFDIR))
|
|
|
|
# List the set files.
|
|
SET_FILES := $(SETS:%=$(SETDIR)/%.set)
|
|
#*****************************************************************************#
|
|
# Binary utilities #
|
|
#*****************************************************************************#
|
|
# Make the binary file.
|
|
MAKEBIN := tools/makebin.py
|
|
|
|
# Make a directory.
|
|
MD := mkdir -p
|
|
|
|
# Install.
|
|
INSTALL := /usr/bin/install
|
|
|
|
# Remove a file.
|
|
RM := rm -f
|
|
#*****************************************************************************#
|
|
# Check for DESTDIR (add as prefix to installation root) #
|
|
#*****************************************************************************#
|
|
# Save original sets dir.
|
|
OISETDIR := $(ISETDIR)
|
|
|
|
# Make it.
|
|
define add-dest-dir
|
|
$1 = $(DESTDIR)$($1)
|
|
endef
|
|
$(if $(DESTDIR), $(foreach idir,\
|
|
ISETDIR,\
|
|
$(eval $(call add-dest-dir,$(idir)))))
|
|
|
|
# End of file.
|