eole-lemonldap-themes/Makefile

43 lines
1.1 KiB
Makefile

#!/usr/bin/make
#---------------------------------------------------------------------------
# Makefile du paquet eole-envole-themes du projet ENVOLE
# Envole 5
#---------------------------------------------------------------------------
SOURCE := envole-themes
INSTALL := install
INSTALL_DIR := install -m 755 -d
DIR_TEMPLATE := ${DESTDIR}/usr/share/lemonldap-ng/portal/templates
DIR_STATIC := ${DESTDIR}/usr/share/lemonldap-ng/portal/htdocs/static
all:
installdirs:
# Transnum
$(INSTALL_DIR) $(DIR_TEMPLATE)/transnum
$(INSTALL_DIR) $(DIR_STATIC)/transnum
# Cadoles
$(INSTALL_DIR) $(DIR_TEMPLATE)/cadoles
$(INSTALL_DIR) $(DIR_STATIC)/cadoles
install: installdirs
# Transnum
cp -r src/transnum/template/* ${DIR_TEMPLATE}/transnum/
cp -r src/transnum/static/* ${DIR_STATIC}/transnum/
# Cadoles
cp -r src/cadoles/template/* ${DIR_TEMPLATE}/cadoles/
cp -r src/cadoles/static/* ${DIR_STATIC}/cadoles/
uninstall:
# Transnum
$(RM) -r $(DIR_TEMPLATE)/transnum
$(RM) -r $(DIR_STATIC)/transnum
# Cadoles
$(RM) -r $(DIR_TEMPLATE)/cadoles
$(RM) -r $(DIR_STATIC)/cadoles