version 1.1, 2011/11/21 03:22:58
|
version 1.2, 2013/07/03 15:35:10
|
Line 13
|
Line 13
|
* always list non-file targets in a .PHONY:-line. If there ever will be a file of the same name as your phony targets, make would otherwise immediately stop claiming that 'foo is up to date'. Also, if someone updates modification and creation times with make -t, the 'file' won't get created. |
* always list non-file targets in a .PHONY:-line. If there ever will be a file of the same name as your phony targets, make would otherwise immediately stop claiming that 'foo is up to date'. Also, if someone updates modification and creation times with make -t, the 'file' won't get created. |
* Installing neatly to a user-customisable path can be done most cleanly like this: |
* Installing neatly to a user-customisable path can be done most cleanly like this: |
|
|
PREFIX?= /usr/local |
PREFIX?= /usr/local |
BINDIR= ${PREFIX}/bin |
BINDIR= ${PREFIX}/bin |
LIBDIR= ${PREFIX}/lib |
LIBDIR= ${PREFIX}/lib |
MANDIR= ${PREFIX}/man |
MANDIR= ${PREFIX}/man |
FILESDIR= ${PREFIX}/share/misc |
FILESDIR= ${PREFIX}/share/misc |
|
|
Added advantage is that this will work out-of-the-box on pkgsrc and FreeBSD's ports, since these define PREFIX to be their installation paths. |
Added advantage is that this will work out-of-the-box on pkgsrc and FreeBSD's ports, since these define PREFIX to be their installation paths. |
|
|
Line 96 This kind of error is quite subtle since
|
Line 96 This kind of error is quite subtle since
|
# See also |
# See also |
|
|
[[make]] |
[[make]] |
[[Basic Unix programming]] |
|
|
|
|
[[Basic Unix programming]] |