Force coreboot mconf to create temp files in the output directory
[coreboot.git] / util / optionlist / Makefile
index c11c80dd2bd10ea4bdada00e28908da85362f25c..5d0d2d298f8c6b84ac6cd184c93383339733d9c9 100644 (file)
@@ -1,7 +1,26 @@
+#
+# Copyright (C) 2010 coresystems GmbH
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+
+SVNVERSION := $(shell LC_ALL=C svnversion -cn ../.. | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/" | grep "[0-9]" || LC_ALL=C svn info . | grep ^Revision | sed "s/.*[[:blank:]]\+\([0-9]*\)[^0-9]*/\1/" | grep "[0-9]" || echo unknown)
+
 all:
-       ./mkOptionList.py
-       @#saxon  Options.xml Options.xsl >Options.html
-       xsltproc Options.xsl Options.xml > Options.html
-       
+       cd ../..; util/optionlist/kconfig2wiki src/Kconfig $(SVNVERSION) > util/optionlist/Options.wiki
+
 clean:
-       rm Options.xml Options.html
+       rm -rf Options.wiki
+