Class MakeMakefile

java.lang.Object
eu.bandm.tools.util.MakeMakefile

public class MakeMakefile extends Object
Creates a skeleton Makefile for a user project which employs meta-tools.

The main algorithm ..
  • infers the package name from the directory name, by following it up to a directory called "src".
  • puts all existing files ending with ".java" into the list "SOURCES" and all sub-directories into the list "SUBDIRS".
  • inserts the "find-prj" macro, and the include statements for "makefile.include", etc.
      If there already exists a Makefile, then the program changes nothing.
  • Field Details

    • prj

      protected static String prj
  • Constructor Details

    • MakeMakefile

      public MakeMakefile()
  • Method Details

    • usage

      protected static void usage()
    • main

      public static void main(String[] args)