PACKAGE = eztelemeta
-VERSION := $(shell cat VERSION)
+VERSION = 0.1
-DOCS = VERSION doc/README.fr doc/README.fr.html doc/doc.css
+DOCS = VERSION ChangeLog doc/README.fr doc/README.fr.html doc/doc.css
SETTINGS = \
settings/content.ini.append \
tar -czf $@ --transform 's|^|eztelemeta/|' $(DISTFILES)
.PHONY: doc
-doc:
+doc: VERSION
$(MAKE) -C doc
.PHONY: clean
clean:
$(MAKE) -C doc clean
+ rm VERSION
+
+VERSION:
+ echo $(VERSION) > $@
# vim: set noexpandtab: ts=2: sw=2:
rst2html --stylesheet=doc.css --link-stylesheet README.fr $@
README.fr: README.fr.in ../VERSION
- cat $^ | sed "s/EZTVERSION/$(VERSION)/g" > $@
+ cat README.fr.in | sed "s/EZTVERSION/$(VERSION)/g" > $@
clean:
rm $(DOCS)