3 BUILD_SCRIPT := build.sh
5 SHARE_OPTION := --boot-splash --comp-type "xz" --user "alter" --password "alter" --kernel "${KERNEL}" --debug --noconfirm
6 ARCH_x86_64 := --arch x86_64
7 ARCH_i686 := --arch i686
8 CURRENT_DIR := ${shell dirname $(dir $(abspath $(lastword $(MAKEFILE_LIST))))}/${shell basename $(dir $(abspath $(lastword $(MAKEFILE_LIST))))}
11 @sudo ${CURRENT_DIR}/tools/fullbuild.sh -d
14 basic-64 basic-32 cinnamon-64 cinnamon-32 gnome-64 i3-64 i3-32 lxde-64 lxde-32 plasma-64 releng-32 releng-64 serene-64 serene-32 xfce-64 xfce-32 xfce-pro-64:
15 $(eval CHANNEL=${shell echo ${@} | cut -d '-' -f 1})
16 $(eval ARCHITECTURE=${shell echo ${@} | cut -d '-' -f 2})
17 @case ${ARCHITECTURE} in\
18 "32") sudo ${CURRENT_DIR}/${BUILD_SCRIPT} ${ARGS} ${SHARE_OPTION} ${ARCH_i686} ${CHANNEL} ;;\
19 "64") sudo ${CURRENT_DIR}/${BUILD_SCRIPT} ${ARGS} ${SHARE_OPTION} ${ARCH_x86_64} ${CHANNEL};;\
23 menuconfig/build/mconf::
24 @mkdir -p menuconfig/build
25 (cd menuconfig/build ; cmake -GNinja .. ; ninja -j4 )
27 menuconfig:menuconfig/build/mconf menuconfig-script/kernel_choice
28 @menuconfig/build/mconf menuconfig-script/rootconf
30 menuconfig-script/kernel_choice:system/kernel-x86_64 system/kernel-i686
31 @${CURRENT_DIR}/tools/kernel-choice-conf-gen.sh
34 @if [ ! -f .config ]; then make menuconfig ; fi
35 ${CURRENT_DIR}/tools/menuconf-to-alterconf.sh ${CURRENT_DIR}/.build_option
38 @sudo ${CURRENT_DIR}/${BUILD_SCRIPT} --noconfirm clean
41 $(eval BUILD_OPTION := $(shell cat ${CURRENT_DIR}/.build_option))
42 @sudo ${CURRENT_DIR}/${BUILD_SCRIPT} ${BUILD_OPTION}
45 @sudo ${CURRENT_DIR}/tools/keyring.sh --alter-add --arch-add
48 @sudo ${CURRENT_DIR}/tools/wizard.sh
51 @bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error **/*.{sh,ksh,bash}'
52 @bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error tools/*.{sh,ksh,bash}'