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.

351alist of files and directories 351a  (346)
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 351b, 352, 431, 456, 457, 464a, and 545.
FILES, used in chunks 432, 435, 456, 457, 464a, 545, and 559.

Uses projectname 124 and test 353.

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.

351bupdate DIRS with ADDITIONALTOPLEVELDIRS 351b  (358)
DIRS+=$(ADDITIONALTOPLEVELDIRS)

Uses ADDITIONALTOPLEVELDIRS 133 and DIRS 351a.