Radix cross Linux Build System

Cross-platform build system is designed to build distributions of different operating systems for a set of target devices

39 Commits   2 Branches   2 Tags

COMPONENT_TARGETS = $(HARDWARE_BUILD)

include ../../build-system/constants.mk

# ======= __END_OF_REQUIRES__ =======

cpan-config    = CPAN-Config.pm
cpan-install   = CPAN-install

config_targets = $(cpan-config) $(cpan-install)

install_target = .installed

BUILD_TARGETS = $(install_target)

CLEANUP_FILES += autom4te.cache
CLEANUP_FILES += $(config_targets)
CLEANUP_FILES += $(install_target)
CLEANUP_FILES += config.log
CLEANUP_FILES += config.status
CLEANUP_FILES += configure

include ../../build-system/core.mk

.NOTPARALLEL:

$(config_targets):
	@autoconf
	@rm -rf autom4te.cache
	@./configure

$(install_target): $(config_targets)
	@echo -e "\n======= Installing CPAN Install script =======\n"
	@mkdir -p $(BUILDSYSTEM)/var/.cpan/CPAN && \
	  install --mode=644 $(cpan-config) $(BUILDSYSTEM)/var/.cpan/CPAN/Config.pm
	@mkdir -p $(BUILDSYSTEM)/usr/bin && \
	  install --mode=755 $(cpan-install) $(BUILDSYSTEM)/usr/bin/cpan-install
	@mkdir -p $(BUILDSYSTEM)/sbin && \
	  echo "CPAN_INSTALL       := $(BUILDSYSTEM)/usr/bin/cpan-install" >> $(BUILDSYSTEM)/sbin/.config
	@touch $@