1 |
commit: 67f11ceb548f69b005bcf0576adcf1badbc7e511 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 30 23:46:04 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 23:46:04 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=67f11ceb |
7 |
|
8 |
Update makefile dist target and add snapshot target |
9 |
|
10 |
The snapshot target makes a tarball named udev-gentoo-scripts.tar.bz2 |
11 |
which consists of whatever is at the current head of the master branch. |
12 |
The dist target makes a tarball based on the tag set in the VERSION |
13 |
makefile variable. This makes it possible to recreate a tarball of any |
14 |
released version of the scripts by doing make VERSION=whatever dist. |
15 |
|
16 |
--- |
17 |
Makefile | 17 +++++++++++------ |
18 |
1 files changed, 11 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/Makefile b/Makefile |
21 |
index 3fbfda4..dfe1862 100644 |
22 |
--- a/Makefile |
23 |
+++ b/Makefile |
24 |
@@ -1,3 +1,7 @@ |
25 |
+PACKAGE = udev-gentoo-scripts |
26 |
+VERSION = v4 |
27 |
+DISTNAME = $(PACKAGE)-$(VERSION) |
28 |
+ |
29 |
LIBUDEV ?= /lib/udev |
30 |
RULESDIR ?= $(LIBUDEV)/rules.d |
31 |
SYSCONFDIR ?= /etc |
32 |
@@ -5,10 +9,6 @@ CONFD ?= $(SYSCONFDIR)/conf.d |
33 |
INITD ?= $(SYSCONFDIR)/init.d |
34 |
MODPROBE_DIR ?= $(SYSCONFDIR)/modprobe.d |
35 |
|
36 |
-VERSION = $(shell git describe --tags) |
37 |
- |
38 |
-DESTNAME = udev-gentoo-scripts-$(VERSION) |
39 |
- |
40 |
HELPERS = \ |
41 |
helpers/net.sh \ |
42 |
helpers/write_root_link_rule |
43 |
@@ -35,8 +35,13 @@ check-git-repository: |
44 |
check test: |
45 |
@cd test; ./run_test.sh |
46 |
|
47 |
-dist: check-git-repository test |
48 |
- git archive --format=tar --prefix=$(DESTNAME)/ HEAD | bzip2 > $(DESTNAME).tar.bz2 |
49 |
+dist: |
50 |
+ git archive --format=tar --prefix=$(DISTNAME)/ $(VERSION) | \ |
51 |
+ bzip2 > $(DISTNAME).tar.bz2 |
52 |
+ |
53 |
+snapshot: check-git-repository |
54 |
+ git archive --format=tar --prefix=$(PACKAGE)/ HEAD | \ |
55 |
+ bzip2 > $(PACKAGE).tar.bz2 |
56 |
|
57 |
.PHONY: install test |