Created
May 28, 2017 19:34
-
-
Save xneomac/70eb86b0862d256f696a1b3c0720d0af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# be | |
all: compte_de_resultat chokola kooki | |
# Ventes | |
liste_produits =`echo produits/*.yaml | tr ' ' ':'` | |
produits: | |
kroissan $(liste_produits) bp/produits.yaml > build/produits.yaml | |
ventes_produits: produits | |
kroissan build/produits.yaml bp/ventes_produits.yaml > build/ventes_produits.yaml | |
ventes: ventes_produits | |
kroissan build/ventes_produits.yaml bp/ventes.yaml > build/ventes.yaml | |
# Charges externes | |
charges_externes: | |
kroissan charges/charges.yaml bp/charges_externes.yaml > build/charges_externes.yaml | |
# Charges personnel | |
liste_postes =`echo postes/*.yaml | tr ' ' ':'` | |
personnels: | |
kroissan $(liste_postes) personnels/personnels.yaml > build/personnels.yaml | |
charges_personnel_mensuelles: personnels | |
kroissan build/personnels.yaml bp/charges_personnel_mensuelles.yaml > build/charges_personnel_mensuelles.yaml | |
charges_personnel: charges_personnel_mensuelles | |
kroissan build/charges_personnel_mensuelles.yaml bp/charges_personnel.yaml > build/charges_personnel.yaml | |
exploitants: | |
kroissan $(liste_postes) personnels/exploitants.yaml > build/exploitants.yaml | |
charges_exploitant_mensuelles: exploitants | |
kroissan build/exploitants.yaml bp/charges_personnel_mensuelles.yaml > build/charges_exploitants_mensuelles.yaml | |
charges_exploitant: charges_exploitant_mensuelles | |
kroissan build/charges_exploitants_mensuelles.yaml bp/charges_exploitants.yaml > build/charges_exploitants.yaml | |
# impots et taxes | |
impots_taxes: charges_personnel charges_exploitant_mensuelles | |
kroissan impots_taxes/impots_taxes.yaml:build/charges_personnel.yaml:build/charges_exploitants.yaml bp/impots_taxes.yaml > build/impots_taxes.yaml | |
# investissements | |
investissements: | |
kroissan investissements/investissements.yaml bp/investissements.yaml > build/investissements.yaml | |
# dotation aux amortissements et aux provisions | |
dotation_amortissements_provisions: investissements | |
kroissan build/investissements.yaml bp/dotation_amortissements_provisions.yaml > build/dotation_amortissements_provisions.yaml | |
# Compte de resultat | |
compte_de_resultat: ventes charges_personnel charges_exploitant impots_taxes charges_externes dotation_amortissements_provisions | |
kroissan build/ventes.yaml:build/charges_personnel.yaml:build/charges_exploitants.yaml:build/charges_externes.yaml:build/impots_taxes.yaml:build/dotation_amortissements_provisions.yaml bp/compte_de_resultat.yaml > build/compte_de_resultat.yaml | |
chokola: | |
chokola build/compte_de_resultat.yaml html > vue/build/compte_de_resultat.md | |
kooki: | |
cd vue ; bake --no-output | |
# Autres | |
clean: | |
rm -rf build vue/build | |
mkdir -p build vue/build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment