>b's YML 2
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.

32 lines
1.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. YML_PATH=
  2. YML2C=yml2c
  3. PKGVER=$(shell python setup.py -V)
  4. all: homepage
  5. homepage: index.html features.html yslt.html toolchain.html programming.html hello.html
  6. update: homepage format.css gpl-2.0.txt
  7. rsync -avC *.html format.css *.yhtml2 gpl-2.0.txt samples dragon:fdik.org/yml2/
  8. update-all: update yml2c yml2.py pyPEG.py backend.py yml2proc
  9. if test -z $(VERSION) ; then echo VERSION not set ; exit 1 ; fi
  10. rsync -avC *.py yml2 yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/
  11. ssh dragon bash -c "cd ; cd fdik.org/; tar cvjf yml-$(VERSION).tar.bz2 yml2/{*.py,*.yml2,*.yhtml2,format.css,gpl-2.0.txt,yml2,yml2c,Makefile,yml2proc,xml2yml.ysl2,standardlib.ysl2,samples} ; rm yml2.tar.bz2 ; ln -s yml-$(VERSION).tar.bz2 yml2.tar.bz2"
  12. %.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2
  13. $(YML2C) $< -o $@
  14. clean:
  15. rm -f *.html *.pyc *.pyo */*.pyc */*.pyo
  16. rm -rf *.egg-info
  17. dist: dist/yml-$(PKGVER).tar.gz
  18. dist/yml-$(PKGVER).tar.gz:
  19. python setup.py sdist
  20. install:
  21. pip install .
  22. rm setup.py