forked from beakerlib/beakerlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (39 loc) · 1.15 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
51
52
53
# 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 build; done
install: build
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 $(MAKECMDGOALS); done
clean:
rm -f *.tar.gz
for i in $(SUBDIRS); do $(MAKE) -C $$i $(MAKECMDGOALS); 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
test:
for i in $(SUBDIRS); do $(MAKE) -C $$i $(MAKECMDGOALS); done