-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.in
148 lines (122 loc) · 3.14 KB
/
Makefile.in
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#
# Copyright (c) 2013 Stefan Seefeld
# All rights reserved.
#
# This file is part of OpenVSIP. It is made available under the
# license contained in the accompanying LICENSE.BSD file.
srcdir := @srcdir@
abs_srcdir := @abs_srcdir@
# config variables
include config.mk
# build instructions
include rules.mk
ifdef enable_parallel
define install_pkgconfig
@echo installing pkgconfig file
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
$(INSTALL_DATA) $(pkgconfig) $(DESTDIR)$(libdir)/pkgconfig/$(pkgconfig)
endef
else
define install_pkgconfig
@echo installing pkgconfig file
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
cat $(pkgconfig) | sed -e "s|^par_cppflags=.*|par_cppflags=|" \
-e "s|^par_libs=.*|par_libs=|" \
-e "s|^par_service=.*|par_service=|" > $(pkgconfig).tmp
$(INSTALL_DATA) $(pkgconfig).tmp $(DESTDIR)$(libdir)/pkgconfig/$(pkgconfig)
endef
endif
.PHONY: benchmarks
all:
$(MAKE) -C src/ovxx
$(MAKE) -C utils
ifdef enable_python_bindings
$(MAKE) -C python
endif
clean:
$(MAKE) -C src/ovxx clean
$(MAKE) -C utils clean
ifdef enable_python_bindings
$(MAKE) -C python clean
endif
$(MAKE) -C doc clean
check: all
$(MAKE) -C tests
installcheck:
$(MAKE) -C tests installcheck
# convenience to rerun previously failed tests
recheck: all
$(MAKE) -C tests recheck
benchmarks:
$(MAKE) -C benchmarks run
install:
$(MAKE) -C src/ovxx install
$(MAKE) -C src/vsip install
ifdef enable_python_bindings
$(MAKE) -C python install
endif
$(MAKE) -C utils install
$(MAKE) -C share install
$(install_pkgconfig)
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) bin/ovxx-create-workspace $(DESTDIR)$(bindir)
dist: sdist
depend:
$(MAKE) -C src/ovxx depend
ifdef enable_python_bindings
$(MAKE) -C python depend
endif
$(MAKE) -C benchmarks depend
$(MAKE) -C doc depend
ifeq (,$(findstring mingw32,$(host)))
sdist: $(distname).tar.bz2
bdist: $(distname)-$(host).tar.bz2
else
# Generate Windows packages.
sdist: $(distname).zip
bdist: $(distname)-win-ia32.zip
endif
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in config.status
@case '$?' in \
*config.status*) ./config.status;; \
*) ./config.status --file=$@;; \
esac;
config.status: $(srcdir)/configure
./config.status --recheck
$(distname).tar.bz2:
-rm -rf $(distname)
mkdir $(distname)
cp -pr $(distfiles) $(distname)
-chmod -R a+r $(distname)
tar cjf $@ --owner=0 --group=0\
--exclude .git \
--exclude autom4te.cache \
--exclude '*~' \
--exclude '.#*' \
$(distname)
-rm -rf $(distname)
$(distname).zip:
-rm -rf $(distname)
mkdir $(distname)
cp -pr $(distfiles) $(distname)
-chmod -R a+r $(distname)
find $(distname) \
-name .git -prune -o\
-name autom4te.cache -prune -o\
-name '*~' -prune -o\
-name '.#*' -prune -o\
-name '*' -print | zip $@ -@
-rm -rf $(distname)
$(distname)$(packagesuffix)-$(host).tar.bz2:
ifndef DESTDIR
@echo "Please set DESTDIR while building binary packages."
else
tar cjhf $@ --owner=0 --group=0 -C $(DESTDIR) `ls $(DESTDIR)`
endif
$(distname)-win-ia32.zip:
ifndef DESTDIR
@echo "Please set DESTDIR while building binary packages."
else
cd $(DESTDIR) && zip -r $@ *
endif