[ADD] Install command in GNUMakefile
This commit is contained in:
parent
8706304cb6
commit
1abc0c8e2b
14
GNUmakefile
14
GNUmakefile
@ -43,6 +43,7 @@ PROG_ECHO = `which echo`
|
|||||||
PROG_TEST = `which test`
|
PROG_TEST = `which test`
|
||||||
PROG_RM = `which rm`
|
PROG_RM = `which rm`
|
||||||
PROG_LUA = `which lua`
|
PROG_LUA = `which lua`
|
||||||
|
PROG_SH = `which sh`
|
||||||
PROG_MKDIR = `which mkdir`
|
PROG_MKDIR = `which mkdir`
|
||||||
|
|
||||||
# vérification des programmes
|
# vérification des programmes
|
||||||
@ -58,6 +59,9 @@ endif
|
|||||||
ifndef PROG_MKDIR
|
ifndef PROG_MKDIR
|
||||||
error_mkdir = 1
|
error_mkdir = 1
|
||||||
endif
|
endif
|
||||||
|
ifndef PROG_SH
|
||||||
|
error_sh = 1
|
||||||
|
endif
|
||||||
ifndef PROG_LUA
|
ifndef PROG_LUA
|
||||||
error_lua = 1
|
error_lua = 1
|
||||||
endif
|
endif
|
||||||
@ -74,14 +78,9 @@ test:
|
|||||||
@$(PROG_ECHO) -e "Lancement des tests…"
|
@$(PROG_ECHO) -e "Lancement des tests…"
|
||||||
@$(PROG_ECHO) -e "\t…existence des différents programmes"
|
@$(PROG_ECHO) -e "\t…existence des différents programmes"
|
||||||
$(if $(error_test), @$(PROG_ECHO) -e "\t\ttest : MANQUANT." ; exit 1)
|
$(if $(error_test), @$(PROG_ECHO) -e "\t\ttest : MANQUANT." ; exit 1)
|
||||||
$(if $(error_sed), @$(PROG_ECHO) -e "\t\tsed : MANQUANT." ; exit 1)
|
$(if $(error_mkdir), @$(PROG_ECHO) -e "\t\tmkdir : MANQUANT." ; exit 1)
|
||||||
$(if $(error_cat), @$(PROG_ECHO) -e "\t\tcat : MANQUANT." ; exit 1)
|
|
||||||
$(if $(error_cp), @$(PROG_ECHO) -e "\t\tcp : MANQUANT." ; exit 1)
|
|
||||||
$(if $(error_sh), @$(PROG_ECHO) -e "\t\tsh : MANQUANT." ; exit 1)
|
$(if $(error_sh), @$(PROG_ECHO) -e "\t\tsh : MANQUANT." ; exit 1)
|
||||||
$(if $(error_rm), @$(PROG_ECHO) -e "\t\trm : MANQUANT." ; exit 1)
|
$(if $(error_rm), @$(PROG_ECHO) -e "\t\trm : MANQUANT." ; exit 1)
|
||||||
$(if $(error_find), @$(PROG_ECHO) -e "\t\tfind : MANQUANT." ; exit 1)
|
|
||||||
$(if $(error_sort), @$(PROG_ECHO) -e "\t\tsort : MANQUANT." ; exit 1)
|
|
||||||
$(if $(error_wc), @$(PROG_ECHO) -e "\t\twc : MANQUANT." ; exit 1)
|
|
||||||
$(if $(error_lua), @$(PROG_ECHO) -e "\t\tlua : MANQUANT." ; exit 1)
|
$(if $(error_lua), @$(PROG_ECHO) -e "\t\tlua : MANQUANT." ; exit 1)
|
||||||
@$(PROG_ECHO) -e "\t…existence des dossiers '$(IMAGES)', '$(CATEGORIES)' et '$(CSS)'"
|
@$(PROG_ECHO) -e "\t…existence des dossiers '$(IMAGES)', '$(CATEGORIES)' et '$(CSS)'"
|
||||||
@for i in $(IMAGES) $(CATEGORIES) $(CSS) ; \
|
@for i in $(IMAGES) $(CATEGORIES) $(CSS) ; \
|
||||||
@ -108,6 +107,9 @@ homepage:
|
|||||||
@$(PROG_LUA) create_homepage.lua || exit 1
|
@$(PROG_LUA) create_homepage.lua || exit 1
|
||||||
@$(PROG_ECHO) -e " …terminée."
|
@$(PROG_ECHO) -e " …terminée."
|
||||||
|
|
||||||
|
install:
|
||||||
|
@$(PROG_SH) install.sh || exit 1
|
||||||
|
|
||||||
## NETTOYAGE
|
## NETTOYAGE
|
||||||
# nettoyage des fichiers générés
|
# nettoyage des fichiers générés
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user