Updating Default Rules File

The UNIX utility make(1) may be configured to ensure that QOF files are up to date by modifying the default make rules to recognize certain kinds of files generated and used by Quintus Prolog and various Quintus utilities.

The sys component postinstall script attempts to modify this file, adding the following rules at the end:

     # Quintus Prolog Compiler (qpc) section
     .SUFFIXES: .qof .pl
     QPC=qpc
     QPCFLAGS=
     .pl:
              $(QPC) $(QPCFLAGS) -o $@ $<
     .pl.qof:
              $(QPC) $(QPCFLAGS) -cN $<
     

Once in place, make(1) will be able to automatically update QOF files. QPCFLAGS can be set to pass qpc any flags needed when building your application.

If you do not install the sys component on your system then the same effect can be produced by including the above rules in any makefiles involving qpc and Prolog code.