diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-13 17:52:16 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-13 17:52:16 +0100 |
| commit | de63db0bd27b24c49ef15be379f55b777b8f219f (patch) | |
| tree | b622a34966f4b62c64d108af2e67d17ec433e3e6 /Makefile | |
initial version
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..74e34d5 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | NAME = hid-3m-pct | ||
| 2 | VERSION = 1.0.0 | ||
| 3 | SRC = usr/src | ||
| 4 | |||
| 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz | ||
| 6 | PATCH = ./scripts/patch-name-version.sh $(NAME) $(VERSION) | ||
| 7 | |||
| 8 | all: $(SRC)/$(TARBALL) | ||
| 9 | |||
| 10 | $(SRC)/$(TARBALL): $(SRC)/dkms_source_tree/$(NAME).c | ||
| 11 | (cd $(SRC); tar cvfz $(TARBALL) dkms*) | ||
| 12 | |||
| 13 | clean: | ||
| 14 | rm -f $(SRC)/$(TARBALL) | ||
| 15 | |||
| 16 | distclean: clean | ||
| 17 | rm -rf *-stamp debian/$(NAME)-dkms debian/*.log debian/files | ||
| 18 | |||
| 19 | install: $(SRC)/$(TARBALL) | ||
| 20 | install -d "$(DESTDIR)/$(SRC)" | ||
| 21 | install -m 644 $(SRC)/$(NAME)-$(VERSION).dkms.tar.gz "$(DESTDIR)/$(SRC)" | ||
| 22 | |||
| 23 | bump: | ||
| 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 | ||
