Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This <a href="http://dbsdl.sourceforge.net/" rel="nofollow noreferrer"><em>Database Schema Definition Language</em></a> project contains an exemplary <a href="http://dbsdl.svn.sourceforge.net/viewvc/dbsdl/trunk/build.xml?revision=15&amp;view=markup" rel="nofollow noreferrer"><code>build.xml</code></a> that shows how to initialize and test a database via JDBC. Note that <code>ant</code> targets are perfectly fine as make commands.</p> <p>Addendum:</p> <blockquote> <p>I need is write a <code>makefile</code> for others to use.</p> </blockquote> <p>This other <a href="https://stackoverflow.com/questions/6222211/jdbc-in-makefile/6227097#6227097">answer</a> shows a good example of invoking <code>javac</code> directly from a <code>makefile</code>. It shows how to include the <code>classpath</code>, which may solve your immediate problem; but the approach rapidly becomes unwieldy for more elaborate builds, such as those including packages. This can be somewhat mitigated by using the <a href="http://www.gnu.org/software/make/manual/make.html#Text-Functions" rel="nofollow noreferrer"><code>subst</code></a> function:</p> <pre><code>PKG = com.name.util PKG_PATH = $(subst .,/,$(PKG)) </code></pre> <p>A far simpler scheme is to write a minimal <code>ant</code> target, such as <code>&lt;target name="compile"…&gt;</code>, as shown <a href="https://sites.google.com/site/drjohnbmatthews/manifesto" rel="nofollow noreferrer">here</a>; then the corresponding <code>make</code> command is simple:</p> <pre><code>.SUFFIXES: .java .class .java .class: ant compile </code></pre> <p>Certainly, the <code>makefile</code> now depends on <code>ant</code>, but <code>ant</code> is fairly <a href="http://ant.apache.org/" rel="nofollow noreferrer">ubiquitous</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload