]> granicus.if.org Git - cgit/commit
Makefile: improve dependency generation
authorJamie Couture <jamie.couture@gmail.com>
Sat, 17 Nov 2012 18:02:17 +0000 (13:02 -0500)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 4 Mar 2013 14:25:24 +0000 (09:25 -0500)
commitca59b26dfd6e5bed6622fad2c57d57083714f9e7
treebea135c1e603b0986f6b986c11727b59946c9ecb
parentfac4da38a074a831e2ef2476dde23a6bc073cc28
Makefile: improve dependency generation

Makefile target generation would always be included for any makefile
target that was not clean.  Only care to include the '.deps' directory
when building cgit, rather than generating and including dependencies
when calling other makefile targets.

Heavily borrowed from git's Makefile, but without definitions to test
for the compiler's header dependency feature.  Previous Makefile
implementation never checked for this compiler feature anyway.

  - Removed makecmdgoal 'clean' check
  - Grouped like .PHONY target definitions
  - Place build dependency targets under .SUFFIXES
  - Re-arranged location of library inclusion definitions
  - Use google code mirror instead of github

Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Makefile