ifneq ($(wildcard Makefile.config)$(wildcard ../Makefile.config),) include ../Makefile.config endif # Angaben zur Distri DISTRI ?= MLD DISTRI_VER ?= 3.0.1.1$(if $(findstring arm,$(shell uname -m)),-arm,) # backgroung color (black, white) bgcolor ?= black logopath ?= hd style ?= hd SYSTEM := $(shell lsb_release -c | cut -f 2) # $(if $(findstring oneiric,$(SYSTEM)),it's an oneiric system,it's an other system) # der svn Brunch auf dem gearbeitet werden soll # SVN_BRANCH ?= $(SYSTEM) # 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 := $(shell test -x /lib/x86_64-linux-gnu && echo x86_64-linux-gnu || { test -x /lib/arm-linux-gnueabihf && echo arm-linux-gnueabihf; }) # 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.de/svn depmod = $(shell test -e ../KERNEL/src/module-init-tools/build/depmod && echo ../KERNEL/src/module-init-tools/build/depmod || echo /sbin/depmod) name ?= $(shell basename `pwd`) suffix ?= sfs ifeq ($(version),) ifdef version_of version := $(shell readlink $(version_of) | sed "s/.*-\|\///g") endif endif ifeq ($(version),) ifneq ($(src_url),) latest_version ?= $(shell $(MAKE) --no-print-directory -sf ../Makefile.getfile version file=src/$(name).tgz url='$(src_url)') endif ifneq ($(src_rule),) latest_version ?= $(shell $(MAKE) --no-print-directory -sf ../Makefile.getfile version file=src/$(name).tgz rule='$(src_rule)') endif ifneq ($(MAKECMDGOALS),deps) ifneq ($(MAKECMDGOALS),clean) version := $(latest_version) endif endif 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)