28.2 Files and Directories

Additional to defining PROJECTROOT and THISDIR, every Makefile in a subdirectory should also list the .nw files and subdirectories in its respective directory. The variables FILES and DIRS are used for this purpose.

355alist of files and directories 355a  (350)
FILES=allprose.tex $(projectname).tex $(projectname).bib\
  aldordoc.sty allprose.sty allprose.4ht $(projectname).sty\
  Makefile Makefile.def Makefile.inc \
  $(EXECUTABLEFILES)
DIRS =tools include src test

Defines:
DIRS, used in chunks 355b, 356, 435, 460, 461, 468a, and 547.
FILES, used in chunks 436, 439, 460, 461, 468a, 547, and 561.

Uses projectname 127 and test 357.

An exception are the Aldor source files. Their names should be listed in myalps.tex.nw (projectname.tex). During a submake call (Section 29.3) these names will be extracted and written (in the form of a variables assignment to the variable ASFILES) to Makefile.asfiles in the corresponding subdirectories as given by DIRS, in particular to src/Makefile.asfiles and test/Makefile.asfiles

Additional directories can be given in Makefile.def.nw through the variable ADDITIONALTOPLEVELDIRS, see Section 15.3.

355bupdate DIRS with ADDITIONALTOPLEVELDIRS 355b  (362)
DIRS+=$(ADDITIONALTOPLEVELDIRS)

Uses ADDITIONALTOPLEVELDIRS 136 and DIRS 355a.