jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7KB

  1. WEBSITE = ardour.sourceforge.net
  2. HTML-FILES := index.html \
  3. issues.html \
  4. manual.html \
  5. features.html \
  6. mailinglist.html \
  7. contributors.html \
  8. intro.html \
  9. download.html \
  10. index.html \
  11. news.html \
  12. links.html \
  13. requirements.html \
  14. configuring.html \
  15. helping.html \
  16. compiling.html \
  17. todo.html
  18. user = $(shell whoami)
  19. fullname = $(shell awk -F: '/$(user)/ { print $$5}' /etc/passwd)
  20. %.html: %.m4 header.html trailer.html
  21. m4 -P -E -I. $< > $@
  22. sed -e "s/@LASTMOD@/`date`/" -e "s/@USER@/$(fullname)/" \
  23. < $@ > $@.XXX && mv $@.XXX $@
  24. .PHONY: manual
  25. .PHONY: upload
  26. all: html
  27. install:
  28. @:
  29. html: $(HTML-FILES)
  30. upload: build-updir
  31. cd updir ; \
  32. if [ "`ls`" ] ; then \
  33. (echo "cd /home/groups/j/ja/jackit/htdocs && tar -zxvf - ; exit"; tar cf - *.html | gzip) | \
  34. ssh \$(user)@shell.sourceforge.net; \
  35. cd .. ; \
  36. touch last-upload ; \
  37. fi
  38. upload-images: build-updir
  39. (echo "cd /home/groups/j/ja/jackit/htdocs && tar -zxvf - ; exit"; tar cf - *.png | gzip) | \
  40. ssh \$(user)@shell.sourceforge.net; \
  41. build-updir:
  42. if [ ! -d updir ] ; then mkdir updir ; else rm -rf updir/* ; fi ; \
  43. if [ ! -f last-upload ] ; then touch --date="Jan 1 00:00:01 EST 1970" last-upload; fi ; \
  44. uptime=`ls -l --full-time last-upload | awk '{printf ("%s %s %s %s %s\n", $$6, $$7, $$8, $$9, $$10)}'`; \
  45. tar -chf - --newer="$$uptime" \
  46. --exclude=updir \
  47. --exclude="*.m4" \
  48. --exclude=Makefile \
  49. --exclude=CVS \
  50. --exclude=manual \
  51. --exclude=header.html \
  52. --exclude=trailer.html \
  53. --exclude=last-upload . | (cd updir; tar xf - ) ; \
  54. clean:
  55. rm -f $(HTML-FILES)