forked from BOINC/boinc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
112 lines (92 loc) · 3.1 KB
/
Makefile.am
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
## -*- mode: makefile; tab-width: 4 -*-
## $Id$
AUTOMAKE_OPTIONS = foreign
include Makefile.incl
## make sure rebuilding uses the right aclocal-switches
ACLOCAL_AMFLAGS = -I m4
if ENABLE_LIBRARIES
API_SUBDIRS = api lib
if ENABLE_SERVER
API_SUBDIRS += zip
endif
## boinc_zip needed for wrapper
if ENABLE_APPS
API_SUBDIRS += zip
endif
if ENABLE_BOINCZIP
API_SUBDIRS += zip
endif
endif
if ENABLE_SERVER
SERVER_SUBDIRS = db py sched apps tools vda html
## once contained samples/example_app which breaks out-of-source-tree builds
endif
if ENABLE_CLIENT
CLIENT_SUBDIRS = client client/scripts
endif
if ENABLE_MANAGER
CLIENTGUI_SUBDIRS = clientgui locale
if BUILD_X11_SCREENSAVER
CLIENTGUI_SUBDIRS += clientscr
endif
endif
if ENABLE_APPS
APPS_SUBDIRS = samples
endif
# ORDER MATTERS below. One must build dependencies FIRST, then things
# that depend on them later
SUBDIRS = m4 $(API_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) $(CLIENTGUI_SUBDIRS) $(APPS_SUBDIRS) doc
# Putting a directory name recursively copies the entire contents - the
# dist-hook below gets rid of CVS directories.
EXTRA_DIST = \
win_build \
doc \
stripchart \
INSTALL
if INSTALL_HEADERS
pkginclude_HEADERS = \
version.h \
svn_version.h \
project_specific_defines.h
endif
# Define files for distclean command
DISTCLEANFILES = \
clientgui/res/Makefile \
packages/generic/sea/Makefile
# Define files for maintainer-clean command
MAINTAINERCLEANFILES = \
config.h.in \
Makefile.in \
aclocal.m4 \
autom4te.cache/* \
compile \
config.guess \
config.sub \
configure \
depcomp \
install-sh \
ltmain.sh \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4 \
missing \
test-driver
# svn_version.h should always be rebuilt.
BUILT_SOURCES = svn_version.h
svn_version.h: generate_svn_version.sh
cd $(srcdir) && sh generate_svn_version.sh
.PHONY: svn_version.h
# Add a stage target for staging a distribution
clean-generic:
rm -rf stage *.gcov $(BUILT_SOURCES)
stage: all
if [ ! -d stage ] ; then mkdir stage ; fi
rm -rf stage/*
$(MAKE) DESTDIR=$(PWD)/stage install
dist-hook:
rm -rf `find $(distdir) -name .backup -prune -o -name '*~' -o -name CVS -name Makefile`
# cd $(distdir) && ./_autosetup
distclean-local:
cd packages/solaris/CSW && make distclean