diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-09 21:26:08 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-10 15:39:56 +0100 |
commit | 1955b5fe707c40ed46e18eb916023f48f1149388 (patch) | |
tree | ce53df788f7268ea9e29ac8f597aaac67f2a14fe /rules/logrotate.make | |
parent | b3104449cb88765b61f146674f4487c2e8c65a2a (diff) | |
download | ptxdist-1955b5fe707c40ed46e18eb916023f48f1149388.tar.gz ptxdist-1955b5fe707c40ed46e18eb916023f48f1149388.tar.xz |
[logrotate] cleanup makefile
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/logrotate.make')
-rw-r--r-- | rules/logrotate.make | 70 |
1 files changed, 12 insertions, 58 deletions
diff --git a/rules/logrotate.make b/rules/logrotate.make index fb924ed66..5d4017901 100644 --- a/rules/logrotate.make +++ b/rules/logrotate.make @@ -1,8 +1,8 @@ # -*-makefile-*- -# $Id: template 6001 2006-08-12 10:15:00Z mkl $ # # Copyright (C) 2006 by Marc Kleine-Budde <mkl@pengutronix.de> -# +# (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de> +# # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions @@ -28,88 +28,42 @@ LOGROTATE_DIR := $(BUILDDIR)/$(LOGROTATE) # Get # ---------------------------------------------------------------------------- -logrotate_get: $(STATEDIR)/logrotate.get - -$(STATEDIR)/logrotate.get: $(logrotate_get_deps_default) - @$(call targetinfo, $@) - @$(call touch, $@) - $(LOGROTATE_SOURCE): - @$(call targetinfo, $@) + @$(call targetinfo) @$(call get, LOGROTATE) -# ---------------------------------------------------------------------------- -# Extract -# ---------------------------------------------------------------------------- - -logrotate_extract: $(STATEDIR)/logrotate.extract - -$(STATEDIR)/logrotate.extract: $(logrotate_extract_deps_default) - @$(call targetinfo, $@) - @$(call clean, $(LOGROTATE_DIR)) - @$(call extract, LOGROTATE) - @$(call patchin, LOGROTATE) - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Prepare -# ---------------------------------------------------------------------------- - -logrotate_prepare: $(STATEDIR)/logrotate.prepare - -LOGROTATE_PATH := PATH=$(CROSS_PATH) -LOGROTATE_ENV := $(CROSS_ENV) RPM_OPT_FLAGS='$(strip $(CROSS_CPPFLAGS))' - -LOGROTATE_MAKEVARS := OS_NAME=Linux LFS=-D_FILE_OFFSET_BITS=64 - -$(STATEDIR)/logrotate.prepare: $(logrotate_prepare_deps_default) - @$(call targetinfo, $@) - @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- -logrotate_compile: $(STATEDIR)/logrotate.compile - -$(STATEDIR)/logrotate.compile: $(logrotate_compile_deps_default) - @$(call targetinfo, $@) - cd $(LOGROTATE_DIR) && $(LOGROTATE_ENV) $(LOGROTATE_PATH) $(MAKE) $(LOGROTATE_MAKEVARS) - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Install -# ---------------------------------------------------------------------------- - -logrotate_install: $(STATEDIR)/logrotate.install +LOGROTATE_PATH := PATH=$(CROSS_PATH) +LOGROTATE_MAKE_ENV := $(CROSS_ENV) RPM_OPT_FLAGS='$(strip $(CROSS_CPPFLAGS))' +LOGROTATE_MAKE_OPT := OS_NAME=Linux LFS=-D_FILE_OFFSET_BITS=64 -$(STATEDIR)/logrotate.install: $(logrotate_install_deps_default) - @$(call targetinfo, $@) - @$(call touch, $@) +LOGROTATE_INSTALL_OPT := PREFIX=$(LOGROTATE_PKGDIR) install # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -logrotate_targetinstall: $(STATEDIR)/logrotate.targetinstall - -$(STATEDIR)/logrotate.targetinstall: $(logrotate_targetinstall_deps_default) - @$(call targetinfo, $@) +$(STATEDIR)/logrotate.targetinstall: + @$(call targetinfo) @$(call install_init, logrotate) @$(call install_fixup,logrotate,PACKAGE,logrotate) @$(call install_fixup,logrotate,PRIORITY,optional) @$(call install_fixup,logrotate,VERSION,$(LOGROTATE_VERSION)) @$(call install_fixup,logrotate,SECTION,base) - @$(call install_fixup,logrotate,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>") + @$(call install_fixup,logrotate,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") @$(call install_fixup,logrotate,DEPENDS,) @$(call install_fixup,logrotate,DESCRIPTION,missing) - @$(call install_copy, logrotate, 0, 0, 0755, $(LOGROTATE_DIR)/logrotate, /usr/sbin/logrotate) + @$(call install_copy, logrotate, 0, 0, 0755, -, /usr/sbin/logrotate) @$(call install_finish,logrotate) - @$(call touch, $@) + @$(call touch) # ---------------------------------------------------------------------------- # Clean |