Makefile
changeset 536 14583eae4848
parent 518 576a7e0fd9e0
child 581 5e3a485408f4
equal deleted inserted replaced
527:3996f4df0915 536:14583eae4848
     1 # Copyright (C) 2008-2010 by Oleksandr Gavenko <gavenkoa@gmail.com>
     1 # Copyright (C) 2008-2010 by Oleksandr Gavenko <gavenkoa@gmail.com>
     2 #
     2 #
     3 # You can do anything with this file without any warranty.
     3 # You can do anything with this file without any warranty.
       
     4 
       
     5 SHELL = /bin/sh
       
     6 
       
     7 # Disable built in pattern rules.
       
     8 MAKEFLAGS += -r
       
     9 # Disable built in variables.
       
    10 MAKEFLAGS += -R
       
    11 # Disable built in suffix rules.
       
    12 .SUFFIXES:
       
    13 # Default target.
       
    14 .DEFAULT_GOAL = all
     4 
    15 
     5 ################################################################
    16 ################################################################
     6 # Helper definition.
    17 # Helper definition.
     7 
    18 
     8 which = $(firstword $(foreach item,$(subst :, ,$(PATH)),$(wildcard $(item)/$1)))
    19 which = $(firstword $(foreach item,$(subst :, ,$(PATH)),$(wildcard $(item)/$1)))