diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00ce8ec --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | NAME = applesmc | ||
| 2 | VERSION = 0.12.3 | ||
| 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 | (cd $(SRC); install -m 644 $(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 | ||
| 31 | |||
