AC_SUBST(PACKAGE_VERSION)
AC_SUBST(INCLUDE_HIDDEN_FROM_AUTOMAKE)
-AC_CONFIG_FILES([Makefile:buildaux/Makefile.in coopt.sh:src/cooptsh.in host.mak:buildaux/hostmak.in website/index.html])
-AC_OUTPUT(,[chmod a-w website/index.html])
+AC_CONFIG_FILES([Makefile:buildaux/Makefile.in coopt.sh:src/cooptsh.in host.mak:buildaux/hostmak.in])
+AC_OUTPUT()
# After the output, chmod coopt.sh to be executable.
chmod a+x coopt.sh
all: README.html NEWS.html BUGS.html THEORY.html ../doc/ick.htm ../doc/intercal.ps
clean:
- rm -f README.html NEWS.html BUGS.html THEORY.html
+ rm -f README.html NEWS.html BUGS.html THEORY.html index.html
+
+VERSION=$(shell cd .. && make echo-version)
+
+index.html: index.html
+ @rm -f index.html
+ @(echo "<!-- Generated file -- do not hand-hack! -->"; echo "define(PACKAGE_VERSION, ${VERSION})" | m4 - index.html.in) >index.html
+ @chmod a-w index.html
README.html: ../README
asciidoc - <../README >README.html
completed. Have patience, the project is presently reorganizing after
the move to git.</p>
-<!-- Test expansion of @PACKAGE_VERSION@ -->
+<!-- Test expansion of PACKAGE_VERSION -->
<h2>Other Tools</h2>
</html>
<!--
Local Variables:
-compile-command: "(cp index.html ..; cd ~/WWW; upload intercal/index.html)"
+compile-command: "upload"
End:
-->