Skip to content

Commit

Permalink
adding package target
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Nov 2, 2024
1 parent d7b7104 commit df5881d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# To pass the dkms.conf parameters to the Makefile,
# add KVER and BASEDIR to the Make command line
KFLAG := 2$(shell "$KVER" | sed -ne 's/^2\.[4]\..*/4/p')x
KFLAG := 2$(shell "${KVER}" | sed -ne 's/^2\.[4]\..*/4/p')x
BSRC ?= /lib/modules/$(shell uname -r)

all: clean modules install
Expand All @@ -56,4 +56,7 @@ ifeq ($(KFLAG),24x)
$(MAKE) -C src/ KVER=$(KVER) BASEDIR=$(BSRC) -f Makefile_linux24x install
else
$(MAKE) -C src/ KVER=$(KVER) BASEDIR=$(BSRC) install
endif
endif

package: modules
dpkg-buildpackage -b -rfakeroot -us -uc

0 comments on commit df5881d

Please sign in to comment.