#dg`make.sub` Each subfolder containing a ``Makefile`` can be build individually by simply issuing ``make`` from there. Dependencies on targets built in other subfolders will be built automatically. This can be used during development to quickly iterate on a single subproject.
# By default, a sub-project ``Makefile`` implements at least the following targets: _
# *default*::
# Builds all library and executable targets.
# *install*::
# Copies installable files to their destination.
# *uninstall*::
# Removes files copied by both *install* and *maninstall*.
# *man*::
# Builds man pages.
# *maninstall*::
# Installs man pages under ``$(PREFIX)/share/man``.
# *clean*::
# Cleans build directory and deletes final targets.
# *depclean*::
# Makes the *clean* target in every dependency of this subproject.
defineDEFAULT_template
default:$$(DEFAULT)
install:$$(INSTALL)
uninstall:
$$(RM)$$(INSTALL)$$(MANINSTALL)
man:$$(MAN)
maninstall:$$(MANINSTALL)
clean:
$(RM)-r*.out/ $(ODIRS)
$(RM)$(DEFAULT)
depclean:
for dep_dir in${DEP_DIRS};do$(MAKE)-C$$$${dep_dir} clean;done
.PHONY:install uninstall man maninstall clean depclean