Makefile (0d3c24e936feefeca854073ccb40613cd6eba9a9) | Makefile (028568d84da3cfca49f5f846eeeef01441d70451) |
---|---|
1# Makefile for cpupower 2# 3# Copyright (C) 2005,2006 Dominik Brodowski <linux@dominikbrodowski.net> 4# 5# Based largely on the Makefile for udev by: 6# 7# Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com> 8# --- 12 unchanged lines hidden (view full) --- 21# 22OUTPUT=./ 23ifeq ("$(origin O)", "command line") 24 OUTPUT := $(O)/ 25endif 26 27ifneq ($(OUTPUT),) 28# check that the output directory actually exists | 1# Makefile for cpupower 2# 3# Copyright (C) 2005,2006 Dominik Brodowski <linux@dominikbrodowski.net> 4# 5# Based largely on the Makefile for udev by: 6# 7# Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com> 8# --- 12 unchanged lines hidden (view full) --- 21# 22OUTPUT=./ 23ifeq ("$(origin O)", "command line") 24 OUTPUT := $(O)/ 25endif 26 27ifneq ($(OUTPUT),) 28# check that the output directory actually exists |
29OUTDIR := $(realpath $(OUTPUT)) | 29OUTDIR := $(shell cd $(OUTPUT) && /bin/pwd) |
30$(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) 31endif 32 33# --- CONFIGURATION BEGIN --- 34 35# Set the following to `true' to make a unstripped, unoptimized 36# binary. Leave this set to `false' for production use. 37DEBUG ?= true --- 291 unchanged lines hidden --- | 30$(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) 31endif 32 33# --- CONFIGURATION BEGIN --- 34 35# Set the following to `true' to make a unstripped, unoptimized 36# binary. Leave this set to `false' for production use. 37DEBUG ?= true --- 291 unchanged lines hidden --- |