-$(outdir)/version.%: $(top-src-dir)/VERSION
- echo '@macro version'> $@
- echo $(TOPLEVEL_VERSION)>> $@
- echo '@end macro'>> $@
- echo ''>> $@
- echo '@macro versionStable'>> $@
- echo $(TOPLEVEL_VERSION_STABLE)>> $@
- echo '@end macro'>> $@
- echo ''>> $@
- echo '@macro versionDevel'>> $@
- echo $(TOPLEVEL_VERSION_DEVEL)>> $@
- echo '@end macro'>> $@
- echo ''>> $@
- echo '@macro downloadStableLinux'>> $@
- echo -n '@uref{http://download.linuxaudio.org/'>> $@
- echo -n 'lilypond/binaries/linux-x86/lilypond-'>> $@
- echo -n $(TOPLEVEL_VERSION_STABLE)>> $@
- echo '-1.linux-x86.sh,'>> $@
- echo -n 'Linux x86: LilyPond '>> $@
- echo -n $(TOPLEVEL_VERSION_STABLE)>> $@
- echo '}'>> $@
- echo '@end macro'>> $@
-
-.SECONDARY: $(outdir)/version.itexi $(outdir)/version.texi \
- $(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep \
- $(outdir)/*.texi
+$(outdir)/version.itexi: $(top-src-dir)/VERSION
+ $(PYTHON) $(top-src-dir)/scripts/build/create-version-itexi.py > $@
+
+$(outdir)/weblinks.itexi: $(top-src-dir)/VERSION
+ $(PYTHON) $(top-src-dir)/scripts/build/create-weblinks-itexi.py > $@