diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-10 02:27:59 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-10 02:27:59 +0100 |
commit | 544831854014d160b8f9100d6442219da90aacea (patch) | |
tree | e8565f3cedb81479b0526799fd054a96ac1874cb /mk/README | |
parent | m (diff) | |
download | scrotty-544831854014d160b8f9100d6442219da90aacea.tar.gz scrotty-544831854014d160b8f9100d6442219da90aacea.tar.bz2 scrotty-544831854014d160b8f9100d6442219da90aacea.tar.xz |
a bunch of stuff...
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'mk/README')
-rw-r--r-- | mk/README | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -4,9 +4,6 @@ Please feel free to use them in your project. Usage: Include all.mk from your makefile. - It is a good idea to include path.mk before you define - path variables. - Read the top of each file for details. Define the variables: @@ -47,3 +44,28 @@ Usage: Variables that do not begin with _ are configurable by the user of the package. + Do no use single character variables in your Makefile. + + To suppress pre-install, post-install, pre-uninstall, + and post-uninstall instructions, set N=true. + PRE_INSTALL, POST_INSTALL, PRE_UNINSTALL, and + POST_UNINSTALL are supportered as specified by the + GNU coding standardars. + + To figure out what pre-install commands to run in your package, run: + make -n a=% install | sed -e 's/\\$//' -e 's/^ *//' | sed -n '/^% /s/^..//p' + + To figure out what post-install commands to run in your package, run: + make -n z=% uninstall | sed -e 's/\\$//' -e 's/^ *//' | sed -n '/^% /s/^..//p' + + To figure out what pre-uninstall commands to run in your package, run: + make -n a=% uninstall | sed -e 's/\\$//' -e 's/^ *//' | sed -n '/^% /s/^..//p' + + To figure out what post-uninstall commands to run in your package, run: + make -n z=% uninstall | sed -e 's/\\$//' -e 's/^ *//' | sed -n '/^% /s/^..//p' + + To suppress verbatim which commands Make runs, + set Q=@. (Excluding the period.) + +Developers should use DEBUG=1 when running make, when possible. + |