ifneq ($(wildcard Makefile.config)$(wildcard ../Makefile.config),) include ../Makefile.config endif # Angaben zur Distri DISTRI ?= MLD DISTRI_VER ?= 3.0.0 # backgroung color (black, white) bgcolor ?= black logopath ?= hd style ?= hd # der svn Brunch auf dem gearbeitet werden soll # SVN_BRANCH ?= natty # Der Pfad in dem die erstellten Addons gespeichert werden sollen OUTPATH ?= !_addons # Meldungen waehrend des makes minimiere (aktiviert die make option -s) #.SILENT: SHELL := /bin/bash ARCH := $(if $(findstring arm,$(shell uname -m)),arm,x86) arch_lib := $(if $(findstring x86_64,$(shell uname -m)),x86_64-linux-gnu,) # Der verwendete Kernel KERNEL := $(shell test -e ../KERNEL/lib/modules && ls ../KERNEL/lib/modules || echo 0) # die Sprachen in die Texte übersetzt werden sollen LANGUAGES ?= en_GB de_DE USER ?= $(shell whoami) svn_old_url ?= http://minidvblinux.dyndns.org/svn name ?= $(shell basename `pwd`) suffix ?= sfs #ifeq ($(version),) ifdef version_of version := $(shell readlink $(version_of) | sed "s/.*-\|\///g") endif #endif ifeq ($(version),) latest_version ?= $(shell $(MAKE) -sf ../Makefile.getfile version file=src/$(name).tgz url='$(src_url)') version := $(latest_version) endif ifeq ($(version),) version := 0 endif ifdef version_suffix version_suffix := .$(version_suffix) endif ifdef group ifeq ($(group),kernel) group_ := kernel-$(shell test -e ../KERNEL/kernel.gz && readlink ../KERNEL/kernel.gz | sed "s/.*-\(.*\)_.*/\1/" || echo 0)_ path ?= system else group_ := $(group)_ path ?= $(group) endif endif path ?= system # Zile Pfad erstellen $(shell mkdir -p ../$(OUTPATH)/$(DISTRI_VER)/$(path)) # Version des Modules modul_version ?= $(shell svn info 2>/dev/null | grep Rev: | cut -d " " -f 4) ifeq ($(modul_version),) modul_version = 0 endif # Version des Makefiles make_version ?= $(shell cd ..; svn info 2>/dev/null | grep Rev: | cut -d " " -f 4) ifeq ($(make_version),) make_version = 0 endif addon = addon/var/spool/apm modul = addon # Ziel des Modules modulname := ../$(OUTPATH)/$(DISTRI_VER)/$(path)/$(DISTRI)-$(DISTRI_VER)_$(group_)$(name)-$(version)$(version_suffix)_$(modul_version).$(suffix)