Skip to content
Snippets Groups Projects
Commit 5fb33209 authored by Florian Pose's avatar Florian Pose
Browse files

Makefiles verbessert.

parent ebc799e2
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ modules: ...@@ -29,7 +29,7 @@ modules:
clean: clean:
$(MAKE) -C $(KERNELDIR) M=`pwd` clean $(MAKE) -C $(KERNELDIR) M=`pwd` clean
rm -rvf */.tmp_versions @rm -rf */.tmp_versions
doc docs: doc docs:
doxygen Doxyfile doxygen Doxyfile
......
...@@ -32,11 +32,17 @@ else ...@@ -32,11 +32,17 @@ else
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Default-Abschnitt # Default-Abschnitt
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules: modules:
$(MAKE) -C .. $(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean: clean:
$(MAKE) -C .. clean $(MAKE) -C $(KERNELDIR) M=`pwd` clean
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
......
...@@ -24,11 +24,17 @@ else ...@@ -24,11 +24,17 @@ else
#---------------------------------------------------------------- #----------------------------------------------------------------
# Default-Abschnitt # Default-Abschnitt
ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules: modules:
$(MAKE) -C .. $(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean: clean:
$(MAKE) -C .. clean $(MAKE) -C $(KERNELDIR) M=`pwd` clean
#---------------------------------------------------------------- #----------------------------------------------------------------
......
...@@ -37,11 +37,17 @@ else ...@@ -37,11 +37,17 @@ else
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Default-Abschnitt # Default-Abschnitt
default: ifneq ($(wildcard ethercat.conf),)
$(MAKE) -C .. include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif
modules:
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
clean: clean:
$(MAKE) -C .. clean $(MAKE) -C $(KERNELDIR) M=`pwd` clean
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment