-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
34 lines (28 loc) · 936 Bytes
/
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
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
top_srcdir := .
include $(top_srcdir)/config/Make.rules
define make-global-rule
$1::
+@for subdir in $2; \
do \
echo "making all in $$$$subdir"; \
( cd $$$$subdir && $(MAKE) $1 ) || exit 1; \
done
endef
$(eval $(call make-global-rule,srcs,$(languages)))
$(eval $(call make-global-rule,tests,$(languages)))
$(eval $(call make-global-rule,all,$(languages)))
$(eval $(call make-global-rule,clean,$(languages)))
$(eval $(call make-global-rule,distclean,$(languages)))
$(eval $(call make-global-rule,install,$(languages)))
#
# Install documentation and slice files
#
install:: install-doc
$(eval $(call install-data-files,$(wildcard $(top_srcdir)/*LICENSE),$(top_srcdir),$(install_docdir),\
install-doc,"Installing documentation files"))