Makefile 641 B

123456789101112131415161718192021222324252627
  1. WWW_ROOT = ~/public-html/tutoriel_git
  2. .PHONY: all publish clean
  3. all: $(WWW_ROOT)
  4. $(MAKE) -C www WWW_ROOT=$(WWW_ROOT)
  5. $(MAKE) -C installation WWW_ROOT=$(WWW_ROOT)
  6. $(MAKE) -C branches WWW_ROOT=$(WWW_ROOT)
  7. $(MAKE) -C depot_distant WWW_ROOT=$(WWW_ROOT)
  8. $(MAKE) -C depot_local WWW_ROOT=$(WWW_ROOT)
  9. $(MAKE) -C forks WWW_ROOT=$(WWW_ROOT)
  10. $(WWW_ROOT):
  11. mkdir -p $(WWW_ROOT)
  12. publish: all
  13. scp -r $(WWW_ROOT) yangra.univ-littoral.fr:public-html/
  14. clean:
  15. rm -rf $(WWW_ROOT)
  16. $(MAKE) -C www clean
  17. $(MAKE) -C installation clean
  18. $(MAKE) -C branches clean
  19. $(MAKE) -C depot_distant clean
  20. $(MAKE) -C depot_local clean
  21. $(MAKE) -C forks clean