initialisation de l'environement

main
Antoine 11 months ago
parent 5763fd4625
commit 7d88368d61

2
.gitignore vendored

@ -0,0 +1,2 @@
# Environement config file
config.env

@ -0,0 +1,21 @@
include config.env
.PHONY: publish
.DEFAULT_GOAL := help
help:
@echo "Utilisez 'make <target>' où <target> est l'une des commande suivantes:"
@echo ""
@grep '^[^.#]\+:\s\+.*#' Makefile | \
sed "s/\(.\+\):\s*\(.*\) #\s*\(.*\)/`printf "\033[93m"` \1`printf "\033[0m"` \3 [\2]/" | \
expand -35
@echo ""
@echo "Lisez le Makefile pour savoir exactement ce que fait chaque commande"
publish: ### copie les fichiers du theme
ifdef WP_THEME_PATH
rsync -rv src/* $(WP_THEME_PATH)
else
@echo "variable WP_THEME_PATH non définie"
@exit 1
endif

@ -0,0 +1,2 @@
# Absolute path to wordpress theme
WP_THEME_PATH=
Loading…
Cancel
Save