make-it-quick/Makefile

68 lines
2.1 KiB
Makefile
Raw Normal View History

2017-03-26 07:02:34 +08:00
#******************************************************************************
# Makefile<make-it-quick> Make-It-Quick project
2017-03-26 07:02:34 +08:00
#******************************************************************************
#
# File Description:
#
# Top-level makefile for 'make-it-quick'
2017-03-26 07:02:34 +08:00
#
#
#
#
#
#
#
#
#******************************************************************************
2018-04-03 21:15:09 +08:00
# (C) 2017-2018 Christophe de Dinechin <christophe@dinechin.org>
# This software is licensed under the GNU General Public License v3
# See LICENSE file for details.
2017-03-26 07:02:34 +08:00
#******************************************************************************
# Package description
PACKAGE_NAME=make-it-quick
PACKAGE_DESCRIPTION=A simple auto-configuring build system for C and C++ programs
PACKAGE_URL=http://github.com/c3d/make-it-quick
# Things to install
HDR_INSTALL= \
rules.mk \
config.mk \
$(wildcard config.*.mk) \
$(MIQ_OBJDIR)config.system-setup.mk
PREFIX_CONFIG=$(PREFIX_SHR)$(PACKAGE_DIR)config/
PACKAGE_INSTALL_LIB=$(DESTDIR)$(PREFIX_CONFIG)
LIB_INSTALL=$(wildcard config/check*.c)
DOC_INSTALL= README.md AUTHORS NEWS
2018-05-17 20:30:19 +08:00
TESTS=example/
# Make sure we generate the config.system
MIQ_MAKEFILE_INSTALL=yes
MIQ=./
-include configured.mk
include $(MIQ)rules.mk
2017-03-26 07:02:34 +08:00
# Install the check*.c files as data
INSTALL_LIB=$(INSTALL_DATA)
# Generation of the system setup file
SYSTEM_SETUP= \
$(SYSCONFIG:%=SYSCONFIG?="$(SYSCONFIG)") \
$(PREFIX:%=PREFIX?="$(PREFIX)") \
$(PREFIX_BIN:%=PREFIX_BIN?="$(PREFIX_BIN)") \
$(PREFIX_SBIN:%=PREFIX_SBIN?="$(PREFIX_SBIN)") \
$(PREFIX_HDR:%=PREFIX_HDR?="$(PREFIX_HDR)") \
$(PREFIX_SHR:%=PREFIX_SHR?="$(PREFIX_SHR)") \
$(PREFIX_LIB:%=PREFIX_LIB?="$(PREFIX_LIB)") \
$(PREFIX_DLL:%=PREFIX_DLL?="$(PREFIX_DLL)") \
$(PREFIX_LIBEXEC:%=PREFIX_LIBEXEC?="$(PREFIX_LIBEXEC)") \
$(PREFIX_MAN:%=PREFIX_MAN?="$(PREFIX_MAN)") \
$(PREFIX_DOC:%=PREFIX_DOC?="$(PREFIX_DOC)") \
$(PREFIX_VAR:%=PREFIX_VAR?="$(PREFIX_VAR)") \
CONFIG_SOURCES="$(PREFIX_CONFIG)"
$(MIQ_OBJDIR)config.system-setup.mk:
$(PRINT_GENERATE) ( $(SYSTEM_SETUP:%=echo %;) true ) > $@