The L-Space Web: Developers

Makefile


Every makefile is different, but only for specifics. The layouts are all the same.

An example makefile taken from the makefile for the art section:

include ../Common.defines

SOURCEDIR = $(SOURCEROOT)/art
TARGETDIR = $(TARGETROOT)/art
SUBDIRS = kidby carpet-people kirby
SEPDIRS = thumbnails PICFILES =

HTMLFILES = $(addsuffix .html, $(basename $(wildcard *.h4)))

include ../Common.targets

../Common.defines & ../Common.targets
refer to files in the root of Lspace, ensure that this path is correct.

SOURCEDIR = $(SOURCEROOT)/?? & TARGETDIR = $(TARGETROOT)/??
refer to where this directory is, within the structure of Lspace

SUBDIRS
refers to any sub-directories that reside off the current directory except for those in the sepdirs.

SEPDIRS
refers to any directories where make does not need to run, e.g. the sub-directory only contains .gif or .jpg.

PICFILES
(unsure, will check)

HTMLFILES
is basically the command to convert .h4 files into .html files

When creating a new directory you generally have to include a Makefile. The only exception to this is when you have an images only directory.


[Up]
This section of L-Space is maintained by The L-Space Librarians

The L-Space Web is a creation of The L-Space Librarians
This mirror site is maintained by Colm Buckley