]> code.delx.au - spectrwm/commit
Improve Linux Makefile.
authorAndrea Bolognani <eof@kiyuko.org>
Mon, 11 Aug 2014 20:59:21 +0000 (22:59 +0200)
committerReginald Kennedy <rk@rejii.com>
Thu, 14 Aug 2014 20:03:38 +0000 (04:03 +0800)
commit884794feec977aad3d4b7f96433c538771be2fc8
treecb11b571e4b7579cfc55c158f55720d14fc14aa8
parentebadaee5f9ec4980a662e312ea63a2e76101c2c5
Improve Linux Makefile.

The following changes have been implemented:

  * make sure all standard (eg. $CFLAGS) variables are taken into
    account when compiling;
  * define default compilation flags in separate $MAINT_* variables
    so that user-defined variables can override them;
  * split default flags the expected way, eg. $CPPFLAGS instead of
    $CFLAGS for C preprocessor flags;
  * declare all dependencies, including the ones on header files;
  * install localized man pages in the corresponding locale-qualified
    directories, so that man(1) can pick them up automatically;
  * install .desktop file;
  * support $DESTDIR for downstream maintainers' convenience;
  * provide uninstall target;
  * get rid of symlink hackery.
linux/Makefile