summaryrefslogtreecommitdiff
blob: 9f88d4dd57ee4ca5c01b70694464b9c42aa07e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PACKAGE = udev-init-scripts
VERSION = 28
DISTNAME = $(PACKAGE)-$(VERSION)

SYSCONFDIR ?= /etc
CONFD ?= $(SYSCONFDIR)/conf.d
INITD ?= $(SYSCONFDIR)/init.d

all:

install:
	install -d $(DESTDIR)$(CONFD)
	install -m 0644 conf.d/* $(DESTDIR)$(CONFD)
	install -d $(DESTDIR)$(INITD)
	install -m 0755 init.d/* $(DESTDIR)$(INITD)

check-git-repository:
	git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; }
	git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; }

dist:
	git archive --format=tar --prefix=$(DISTNAME)/ $(VERSION) | \
		bzip2 > $(DISTNAME).tar.bz2

snapshot: check-git-repository
	git archive --format=tar --prefix=$(PACKAGE)/ HEAD | \
		bzip2 > $(PACKAGE).tar.bz2

.PHONY: install