Makefile (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) | Makefile (8e9b466799230bc20a029579e92d4cd526e5a2e1) |
---|---|
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 := $(shell cd $(OUTPUT) && /bin/pwd) | 29OUTDIR := $(realpath $(OUTPUT)) |
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 --- |