############################################################################## # $HeadURL$ # $Id$ ############################################################################### # installation settings include ../../../../config.mk # local defines SOURCES = ${ROOT_DIR}/src CORE_SRC = ${SOURCES}/core PLUG_SRC = ${SOURCES}/plugins PROJ_SRC = ${SOURCES}/projects CORE_USR = ${ROOT_DIR}/usr/core PLUG_USR = ${ROOT_DIR}/usr/plugins PROJ_USR = ${ROOT_DIR}/usr/projects PROJ_TMP = ${ROOT_DIR}/tmp/projects PROJ_VAR = ${ROOT_DIR}/var/projects PORTSDIR = ${CORE_SRC}/ports LOCAL = ${ROOT_DIR}/usr/local PORTSWRK = ${ROOT_DIR}/var/ports .PHONY: project_create create \ project_import import \ # create new project create: project_create ; project_create: @if [ -z "${NAME}" ]; then \ echo "ERROR: NAME not defined"; \ echo "HINT: use 'make cmd NAME=xxx'"; \ exit 1; \ fi; @if [ -r "${PROJ_SRC}/promosuite/comps/i/${NAME}" ]; then \ else \ mkdir ${PROJ_SRC}/promosuite/comps/i/${NAME}; \ mkdir ${PROJ_SRC}/promosuite/comps/comps/${NAME}; \ mkdir ${PROJ_SRC}/promosuite/comps/www/${NAME}; \ cp ${PROJ_SRC}/promosuite/comps/www/index.html ${PROJ_SRC}/promosuite/comps/www/${NAME}/; \ fi; @echo $@ done import: project_import ; project_import: @if [ -z "${NAME}" ]; then \ echo "ERROR: NAME not defined"; \ echo "HINT: use 'make cmd NAME=xxx'"; \ exit 1; \ fi; @if [ -r "${PROJ_SRC}/promosuite/comps/i/${NAME}" ]; then \ svn add ${PROJ_SRC}/promosuite/comps/i/${NAME}; \ svn add ${PROJ_SRC}/promosuite/comps/comps/${NAME}; \ svn add ${PROJ_SRC}/promosuite/comps/www/${NAME}; \ fi; @echo $@ done