forked from beakerlib/beakerlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (46 loc) · 1.28 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
54
55
56
57
58
59
60
61
# License: GPL v2
# Copyright Red Hat Inc. 2009
export PKGNAME := beakerlib
export PKGVERSION := $(shell cat VERSION )
export TAG := ${PKGVERSION}
ifndef DD
DD:=/usr
endif
export DESTDIR := $(shell readlink -f -n $(DD))
ifndef PKGDOCDIR
export PKGDOCDIR := $(DESTDIR)/share/doc/$(PKGNAME)/
endif
# Command aliases for homebrew and non-gnu compatibilities
ifndef GETOPT_CMD
export GETOPT_CMD := getopt
endif
ifndef READLINK_CMD
export READLINK_CMD := readlink
endif
SUBDIRS := src
build:
for i in $(SUBDIRS); do $(MAKE) -C $$i build; done
install: build
mkdir -p $(PKGDOCDIR)
install -m 644 -p LICENSE $(PKGDOCDIR)
install -m 644 -p README $(PKGDOCDIR)
install -m 644 -p MAINTENANCE $(PKGDOCDIR)
install -m 644 -p VERSION $(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