Commit 2d442de7f0e9ecaa0a6ee1f5ab4fb659b6b99845

Authored by André Araújo
1 parent bb4e9b7e
Exists in master

Add Makefile and .gitignore

Showing 3 changed files with 19 additions and 1 deletions   Show diff stats
.gitignore 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +.*
  2 +*~
  3 +!.gitignore
  4 +!.gitempty
  5 +
... ...
Makefile 0 → 100644
... ... @@ -0,0 +1,14 @@
  1 +INSTALLDIR=/var/www
  2 +
  3 +D=$(shell find * -type d -print)
  4 +F=$(shell find * -type f -not -iname "Makefile" -not -iname "README.md" -print)
  5 +
  6 +.PHONY: install uninstall
  7 +
  8 +install:
  9 + @ for d in ${D}; do sudo $(addprefix install -m 775 -p -v -d ${INSTALLDIR}/,$$d); done
  10 + @ for f in ${F}; do sudo $(addprefix install -m 644 -p -v $$f ${INSTALLDIR}/,$$f); done
  11 +
  12 +uninstall:
  13 + @ for f in ${F}; do sudo $(addprefix rm -fv ${INSTALLDIR}/,$$f); done
  14 + @ if [ -d "${INSTALLDIR}" ]; then sudo find ${INSTALLDIR} -type d -empty -print -delete; fi
... ...
inicial.txt
... ... @@ -1 +0,0 @@
1   -Repositorio wikilibras-front Criado