[MàJ] Changement de quelques éléments du fichier de configuration :
* CSS_COULEUR -> STYLE * DOSSIER_HTML -> COMPOSANTS * réadaptation du code en fonction des changements * déplacement de la variable dependances_index vers le Makefile
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
## configuration utilisateur
|
||||
include configrc
|
||||
## autre configurations
|
||||
dependances_index = $(entete) $(enqueue) $(contenu_fin)
|
||||
SOURCE = $(categ)/*.$(ext)
|
||||
# programmes
|
||||
PROG_ECHO = `which echo`
|
||||
@ -115,9 +116,9 @@ $(DESTINATION)/$(CSS_NOM): $(dependances_css)
|
||||
@$(PROG_ECHO) -e " …terminée."
|
||||
|
||||
# création du fichier CSS de couleur
|
||||
$(DESTINATION)/$(CSS_COULEUR): style/$(CSS_COULEUR)
|
||||
$(DESTINATION)/$(STYLE): style/$(STYLE)
|
||||
@$(PROG_ECHO) -e "Création du fichier CSS pour les couleurs…"
|
||||
@$(PROG_CP) style/$(CSS_COULEUR) $(DESTINATION)/$(CSS_COULEUR)
|
||||
@$(PROG_CP) style/$(STYLE) $(DESTINATION)/$(STYLE)
|
||||
@$(PROG_ECHO) -e " …terminée."
|
||||
|
||||
# création du fichier $(contenu)
|
||||
@ -139,7 +140,7 @@ $(contenu): $(script_contenu) $(SOURCE) $(image_defaut)
|
||||
|
||||
# création de la page d'index
|
||||
index: $(INDEX)
|
||||
$(INDEX): $(DOSSIER_HTML) $(DESTINATION)/$(CSS_NOM) $(dependances_index) $(contenu) $(DESTINATION)/$(CSS_COULEUR)
|
||||
$(INDEX): $(COMPOSANTS) $(DESTINATION)/$(CSS_NOM) $(dependances_index) $(contenu) $(DESTINATION)/$(STYLE)
|
||||
@$(PROG_ECHO) -e "Création de la page de garde…"
|
||||
# entete
|
||||
@$(PROG_ECHO) -e "\t…insertion de l'entête"
|
||||
@ -150,7 +151,7 @@ $(INDEX): $(DOSSIER_HTML) $(DESTINATION)/$(CSS_NOM) $(dependances_index) $(conte
|
||||
-e "s/@@TITRE_PORTEAIL@@/$(TITRE)/g" \
|
||||
-e "s/@@ACCUEIL_PORTEAIL@@/$(ACCUEIL)/g" \
|
||||
-e "s#@@CSS_DEFAUT@@#./$(CSS_NOM)#g" \
|
||||
-e "s#@@CSS_COULEUR@@#./$(CSS_COULEUR)#g" \
|
||||
-e "s#@@CSS_COULEUR@@#./$(STYLE)#g" \
|
||||
-e "s/^\(.*\)@@.*@@\(.*\)$$/\1\2/g" \
|
||||
$(INDEX)
|
||||
@$(PROG_ECHO) -e "\t …contenu modifié avec succès !"
|
||||
|
Reference in New Issue
Block a user