summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 29 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6a04556..b750188 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,30 @@
1# 1NAME = bcm5974
2# Makefile for input/mouse drivers 2VERSION = 0.99
3# 3SRC = usr/src
4 4
5obj-m := bcm5974.o 5TARBALL = $(NAME)-$(VERSION).dkms.tar.gz
6PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION)
7
8all: $(SRC)/$(TARBALL)
9
10$(SRC)/$(TARBALL): $(SRC)/dkms_source_tree/$(NAME).c
11 (cd $(SRC); tar cvfz $(TARBALL) dkms*)
12
13clean:
14 rm -f $(SRC)/$(TARBALL)
15
16distclean: clean
17 rm -rf *-stamp debian/$(NAME)-dkms debian/*.log debian/files
18
19install: $(SRC)/$(TARBALL)
20 install -d "$(DESTDIR)/$(SRC)"
21 (cd $(SRC); install -m 644 $(NAME)-$(VERSION).dkms.tar.gz "$(DESTDIR)/$(SRC)")
22
23bump:
24 $(PATCH) debian/postinst
25 $(PATCH) debian/postrm
26 $(PATCH) debian/prerm
27 $(PATCH) debian/rules
28 $(PATCH) debian/postinst
29 $(PATCH) usr/src/dkms_source_tree/dkms.conf
30 chmod 0755 debian/rules