This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathMakefile.am
162 lines (135 loc) · 3.49 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
## Process this file with automake to produce Makefile.in
## $Id$
ACLOCAL_AMFLAGS = -I m4
#
# sfslite change
#
if USE_TUTORIAL
TUTORIAL = tutorial
else
TUTORIAL =
endif
if USE_SFSMISC
SVC = svc
else
SVC =
endif
if USE_LIBSFS
LIBSFS = libsfs
ARPCGEN = arpcgen
else
LIBSFS =
ARPCGEN =
endif
if USE_TESTS
TESTS_DIR = tests
else
TESTS_DIR =
endif
if USE_TOOLS
TOOLS = tools
else
TOOLS =
endif
SUBDIRS = \
async \
libsafeptr \
rpcc \
arpc \
crypt \
$(ARPCGEN) \
$(LIBSFS) \
$(SVC) \
sfsmisc \
contrib \
tame \
libtame \
libaapp \
$(TESTS_DIR) \
$(TUTORIAL) \
$(TOOLS)
DIST_SUBDIRS = $(SUBDIRS)
#
# end sfslite change
#
noinst_HEADERS = nfsconf.h
sfslibp_DATA = acsfs.m4
EXTRA_DIST = setup autoconf.sed .cvsignore STANDARDS acsfs.m4
CLEANFILES = core *.core *~
MAINTAINERCLEANFILES = \
aclocal.m4 install-sh mkinstalldirs missing depcomp \
configure config.guess config.sub config.h.in \
ltconfig ltmain.sh \
INSTALL COPYING Makefile.in stamp-h.in
sfsinclude_HEADERS = autoconf.h
BUILT_SOURCES = autoconf.h
DISTCLEANFILES = autoconf.h stamp-auto-h autom4te*.cache
all-recursive install-recursive: autoconf.h
autoconf.h: stamp-auto-h
@:
stamp-auto-h: $(srcdir)/autoconf.sed $(CONFIG_HEADER)
@rm -f autoconf.h~
sed -f $(srcdir)/autoconf.sed $(CONFIG_HEADER) > autoconf.h~
cmp autoconf.h~ autoconf.h > /dev/null 2>&1 \
|| mv -f autoconf.h~ autoconf.h
@rm -f autoconf.h~
@echo timestamp > stamp-auto-h
dist-hook:
cd $(distdir) && rm -f autoconf.h
cd $(distdir) && chmod -x setup
install-data-local:
-src=$(DESTDIR)$(sfsincludedirp); dst=$(DESTDIR)$(pkgincludedir); \
if test $(make_symlink) -eq 1; then \
rm -f $$dst; \
if test "`dirname $$src`" = "`dirname $$dst`"; then \
ln -s "`basename $$src`" $$dst; \
else \
ln -s $(sfsincludedirp) $$dst; \
fi \
fi
install-exec-local:
-src=$(DESTDIR)$(sfslibpdir); dst=$(DESTDIR)$(pkglibdir); \
if test $(make_symlink) -eq 1; then \
rm -f $$dst; \
if test "`dirname $$src`" = "`dirname $$dst`"; then \
ln -s "`basename $$src`" $$dst; \
else \
ln -s $(sfslibpdir) $$dst; \
fi \
fi
install-data-hook:
$(INSTALL_DATA) async/env.mk $(DESTDIR)$(sfslibdir)
$(INSTALL_DATA) async/pyenv.mk $(DESTDIR)$(sfslibdir)
@echo "********************** Upgrading SFS **************************"
@echo If you previously installed older versions of SFS, you may want
@echo to remove their directories and files:
@echo
@echo " " $(prefix)/include/sfslite-VERSION
@echo " " $(prefix)/lib/sfslite-VERSION
@echo
@echo where VERSION is less than $(SHORTVERSION).
@echo "***************************************************************"
uninstall-local:
-rm -f $(DESTDIR)$(pkglibdir) $(DESTDIR)$(pkgincludedir)
-rmdir $(DESTDIR)$(sfslibdir) $(DESTDIR)$(sfsincludedir) \
$(DESTDIR)$(confdir)
all-recursive-am: aux-all
#mostlyclean-recursive: aux-mostlyclean
#clean-recursive: aux-clean
distclean-recursive: aux-distclean
maintainer-clean-recursive: aux-maintainer-clean
AUX_TARGET = `echo $@ | sed -e 's/^aux-//'`
.PHONY: aux-all aux-mostlyclean aux-clean aux-distclean aux-maintainer-clean
aux-all aux-mostlyclean aux-clean aux-distclean aux-maintainer-clean:
test -z "$(GMP_DIR)" || (cd "$(GMP_DIR)" && $(MAKE) $(AUX_TARGET))
test -z "$(DB3_DIR)" -o "$(DB3_DIR)" = "@"DB3_DIR"@" \
|| (cd "$(DB3_DIR)/dist" && $(MAKE) $(AUX_TARGET))
.PHONY: rpcclean bldclean
rpcclean:
for dir in arpc $(SVC) $(LIBSFS) tutorial ; do \
(cd $$dir && $(MAKE) rpcclean); \
done
bldclean: rpcclean
for dir in tutorial ; do \
(cd $$dir && $(MAKE) bldclean) ; \
done