8.7.4 naive-makefile.oz

Let us now take advantage of ozmake and turn NaiveClosure.ozf and NaiveParser.ozf into libraries available through a package. To this end, we must write a makefile which we will place in a file called naive-makefile.oz.

<naive-makefile.oz>=
makefile(
   lib    : ['NaiveClosure.ozf' 'NaiveParser.ozf']
   uri    : 'x-ozlib://oz-kurs/naive' 
   mogul  : 'mogul:/oz-kurs/denys/naive' 
   author : 'Denys Duchier')

We can now install our libraries as follows:

ozmake --install --makefile=naive-makefile.oz

which illustrates another feature of ozmake, namely the possibility to specify a makefile other than the default makefile.oz using a --makefile option argument. We can also create a package denys-naive.pkg as follows:

ozname --create --makefile=naive-makefile.oz --package=denys-naive.pkg


Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)