forked from beakerlib/beakerlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.05 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# License: GPL v2
# Copyright Red Hat Inc. 2009
export PKGNAME := beakerlib
export PKGVERSION := $(shell cat VERSION )
export TAG := ${PKGVERSION}
ifndef DD
DD:=/
endif
ifndef PKGDOCDIR
export PKGDOCDIR := /usr/share/doc/$(PKGNAME)/
endif
export DESTDIR := $(shell readlink -f -n $(DD))
SUBDIRS := src
build:
for i in $(SUBDIRS); do $(MAKE) -C $$i; done
install:
mkdir -p $(DESTDIR)$(PKGDOCDIR)
install -m 644 -p LICENSE $(DESTDIR)$(PKGDOCDIR)
install -m 644 -p README $(DESTDIR)$(PKGDOCDIR)
install -m 644 -p MAINTENANCE $(DESTDIR)$(PKGDOCDIR)
install -m 644 -p VERSION $(DESTDIR)$(PKGDOCDIR)
for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
clean:
rm -f *.tar.gz
for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
upstream-release:
sh upstream-release.sh ${TAG}
testing-release:
sh upstream-release.sh ${TAG} testing
experimental-release:
sh upstream-release.sh ${TAG} experimental
check:
sh check-tempfiles.sh
make -C src check
make -C src test AREA=$(AREA)
archive:
git archive --prefix=beakerlib-$(TAG)/ -o beakerlib-$(TAG).tar.gz HEAD