Makefile
author Claudio Luck <claudio.luck@pep.foundation>
Tue, 04 Sep 2018 16:52:30 +0200
changeset 53 b94d4c5b9496
parent 52 b4a9a3122abb
child 55 e76930ea6464
permissions -rw-r--r--
prepare to move body code into main function
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     1
YML_PATH=
52
b4a9a3122abb move python code into new package dir
Claudio Luck <claudio.luck@pep.foundation>
parents: 0
diff changeset
     2
YML2C=yml2/yml2c
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
all: homepage
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
homepage: index.html features.html yslt.html toolchain.html programming.html hello.html
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
update: homepage format.css gpl-2.0.txt
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
	rsync -avC *.html *.yml2 format.css *.yhtml2 gpl-2.0.txt samples dragon:fdik.org/yml2/
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
update-all: update yml2c yml2.py pyPEG.py backend.py yml2proc
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
	if test -z $(VERSION) ; then echo VERSION not set ; exit 1 ; fi
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
	rsync -avC *.py yml2c Makefile yml2proc xml2yml.ysl2 standardlib.ysl2 samples dragon:fdik.org/yml2/
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    14
	ssh dragon bash -c "cd ; cd fdik.org/; tar cvjf yml-$(VERSION).tar.bz2 yml2/{*.py,*.yml2,*.yhtml2,format.css,gpl-2.0.txt,yml2c,Makefile,yml2proc,xml2yml.ysl2,standardlib.ysl2,samples} ; rm yml2.tar.bz2 ; ln -s yml-$(VERSION).tar.bz2 yml2.tar.bz2"
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    15
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    16
%.html: %.en.yhtml2 heading.en.yhtml2 homepage.en.yhtml2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    17
	$(YML2C) $< -o $@
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    18
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    19
clean:
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    20
	rm -f *.html *.pyc *.pyo