Arto's Notes re: makefiles

Targets

Conventional Targets

  • make all
  • make check
  • make dist
  • make install
  • make uninstall
  • make clean
  • make distclean
  • make mostlyclean

Variables

Special Variables

  • $@: The output target.
  • $*: The output target plus all of the dependencies.
  • $<: The first dependency in the dependency list.
  • $^: The list of all dependencies.

Rules

README.html: README.rst
        $(PANDOC) -o $@ -t html5 -s $<

See Also

Premake