Skip to content

Commit c4085eb

Browse files
committed
Subject: More elaborated Makefile.
1 parent f6a90e6 commit c4085eb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

hello-param/Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ obj-m := hello-param.o
55
else
66
KDIR=/usr/src/linux-headers-$(shell uname -r)
77

8-
all:
8+
all: modules
9+
10+
modules:
911
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
10-
clean:
11-
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean # from lkmpg
12+
modules_install:
13+
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
14+
kernel_clean:
15+
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean # from lkmpg
16+
clean: kernel_clean
1217
rm -rvf *~
18+
1319
endif
1420

1521

0 commit comments

Comments
 (0)