[kernel] r11791 - dists/trunk/firmware-nonfree/bnx2/fwcutter

Bastian Blank waldi at alioth.debian.org
Fri Jul 4 22:00:35 UTC 2008


Author: waldi
Date: Fri Jul  4 22:00:34 2008
New Revision: 11791

Log:
bnx2/fwcutter/Makefile: Allow clean without definitions.


Modified:
   dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile

Modified: dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile
==============================================================================
--- dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile	(original)
+++ dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile	Fri Jul  4 22:00:34 2008
@@ -1,10 +1,12 @@
-ifndef KERNEL_SOURCE
-$(error Please define KERNEL_SOURCE)
+test :=
+ifdef KERNEL_SOURCE
+test += source
 endif
-ifndef KERNEL_VERSION
-$(error Please define KERNEL_VERSION)
+ifdef KERNEL_VERSION
+test += version
 endif
 
+ifeq "$(test)" " source version"
 CFLAGS += -I$(KERNEL_SOURCE)/drivers/net
 CFLAGS += --std=gnu99
 LDFLAGS += -lz
@@ -13,3 +15,10 @@
 
 bnx2_fwcutter_$(KERNEL_VERSION): bnx2_fwcutter_$(KERNEL_VERSION).c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+else
+all:
+	$(error Please define KERNEL_SOURCE and KERNEL_VERSION)
+endif
+
+clean:
+	rm -f $(basename $(wildcard bnx2_fwcutter_*.c))



More information about the Kernel-svn-changes mailing list