diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-02 17:53:15 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-02 17:53:15 +0100 |
commit | cbf3aeb205eb3cf44947e9fa2f77482da136aef0 (patch) | |
tree | 6b9a23b55367ee228b59b7bdb25d351ccc68a330 | |
parent | 880c219067ddd3fd1e3e837f9630a5035d97295b (diff) | |
download | cpufrequtils-cbf3aeb205eb3cf44947e9fa2f77482da136aef0.tar.gz |
Bugfixes to the Makefile
Fix Makefile to allow overrides from the command line (thanks to Bruno
Ducrot). Also get rid of an unused variable (thanks to Dave Jones)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | .gitignore | 18 | ||||
-rw-r--r-- | Makefile | 28 | ||||
-rw-r--r-- | debug/i386/centrino-decode.c | 1 |
3 files changed, 32 insertions, 15 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..995c375 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +.libs +build/ccdv +cpufreq-info +cpufreq-set +lib/.libs +lib/cpufreq.lo +lib/cpufreq.o +lib/proc.lo +lib/proc.o +lib/sysfs.lo +lib/sysfs.o +libcpufreq.la +po/cpufrequtils.pot +po/de.gmo +po/fr.gmo +po/it.gmo +utils/cpufreq-info.o +utils/cpufreq-set.o @@ -24,24 +24,24 @@ # Set the following to `true' to make a unstripped, unoptimized # binary. Leave this set to `false' for production use. -DEBUG = false +DEBUG ?= false # make the build silent. Set this to something else to make it noisy again. -V = false +V ?= false # Internationalization support (output in different languages). # Requires gettext. -NLS = true +NLS ?= true # Use the sysfs-based interface which is included in all 2.6 kernels # built with cpufreq support -SYSFS = true +SYSFS ?= true # Use the proc-based interface which is used in the 2.4 patch for cpufreq -PROC = true +PROC ?= true # Prefix to the directories we're installing to -DESTDIR = /usr +DESTDIR ?= # --- CONFIGURATION END --- @@ -50,7 +50,7 @@ DESTDIR = /usr # Package-related definitions. Distributions can modify the version # and _should_ modify the PACKAGE_BUGREPORT definition -VERSION = 0.5-pre1 +VERSION = 0.5-pre2 LIB_VERSION = 0:0:0 PACKAGE = cpufrequtils PACKAGE_BUGREPORT = linux@brodo.de @@ -61,11 +61,11 @@ LANGUAGES = de fr it # do not need to be changed. Please note that DESTDIR is # added in front of any of them -bindir = /bin -mandir = /man -includedir = /include -libdir = /lib -localedir = /share/locale +bindir ?= /usr/bin +mandir ?= /usr/man +includedir ?= /usr/include +libdir ?= /usr/lib +localedir ?= /usr/share/locale # Toolchain: what tools do we use, and what options do they need: @@ -212,7 +212,7 @@ update-gmo: po/$(PACKAGE).pot echo "msgmerge for $$HLANG failed!"; \ rm -f po/$$HLANG.new.po; \ fi; \ - /usr/bin/gmsgfmt --statistics -o po/$$HLANG.gmo po/$$HLANG.po; \ + /usr/bin/msgfmt --statistics -o po/$$HLANG.gmo po/$$HLANG.po; \ done; clean: @@ -243,7 +243,7 @@ install-man: install-gmo: $(INSTALL) -d $(DESTDIR)${localedir} for HLANG in $(LANGUAGES); do \ - echo '$(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpufrequtils.mo;' \ + echo '$(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpufrequtils.mo'; \ $(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpufrequtils.mo; \ done; diff --git a/debug/i386/centrino-decode.c b/debug/i386/centrino-decode.c index 61beceb..7ef24cc 100644 --- a/debug/i386/centrino-decode.c +++ b/debug/i386/centrino-decode.c @@ -95,7 +95,6 @@ static int decode_live(unsigned int cpu) int main (int argc, char **argv) { unsigned int cpu, mode = 0; - int i; if (argc < 2) cpu = 0; |