Since this requires to build pat2inc on the host, we do a quick configure
and make, and cleanup afterwards.
Proper support from automake for native tools in a cross setup would be the
correct way do to things, but we don't have it yet.
 #!/bin/bash
 
 autoreconf -f -i
+# generate files that cannot be made in a cross-build setup yet
+./configure
+make -C gnushogi gnushogi_bootstrap
+make distclean
 
 echo "You may now run ./configure"
 
 gnuminishogi-pattern.inc: $(top_srcdir)/misc/gnuminishogi.pat pat2inc$(EXEEXT)
        ./pat2inc $< $@
 
+# just get *.inc generated
+gnushogi_bootstrap: $(BUILTHEADERS)
+       :
+
 # optional support for prebuilding a bbk
 
 gnushogi.bbk: $(top_srcdir)/misc/gnushogi.tbk gnushogi$(EXEEXT)