Standard targets in Shore makefiles

Standard targets in Shore makefiles


This is under construction!

{documentation,src}/

documentation/ only:

documentation/man only:

src/ only:

src/examples/*/Makefile.template:

src/examples/Imakefile:

The Imakefile in each example subdirectory must follow the following conventions: Targets given in Makefile.template are made with Makefile.template. The Imakefile must have each of those targets with a rule that makes the target by

    $(MAKE) -f Makefile.template $(OPTIONS) $@

Unless there is something special about the example, just use the default templates and rules given in src/examples/local.{tmpl,rules}. All you have to specify in your Imakefile is any subdirectories that need to be made for any of these targets: install clean_install clean_symlinks symlinks add.

The defaults are handled as follows:

Here's the entire Imakefile for src/examples/stree:

# --------------------------------------------------------------- #
# -- Copyright (c) 1994 Computer Sciences Department,          -- #
# -- University of Wisconsin -- Madison, subject to            -- #
# -- the terms and conditions given in the file COPYRIGHT.     -- #
# -- All Rights Reserved.                                      -- #
# --------------------------------------------------------------- #

/*
 * Imakefile for example SDL program
 *
 * $Header: /p/shore/shore_cvs/src/examples/stree/Imakefile,v 1.12 1994/10/27
16
:51:28 nhall Exp $
 *
 * This Imakefile follows the conventions in ../README.makefiles
 */


SUBDIR = sonnets

install_copy(examples/stree, $(SRCS) $(SDLFILES) Makefile.template)

Testing makefiles in src/examples/*

You can test any of the makefiles with an installed server by doing this: