-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.in
80 lines (61 loc) · 2.55 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
# ==============================================================================
# Unix Makefile for libxnd
# ==============================================================================
PACKAGE_TARNAME = @PACKAGE_TARNAME@
LIBSTATIC = @LIBSTATIC@
LIBNAME = @LIBNAME@
LIBSONAME = @LIBSONAME@
LIBSHARED = @LIBSHARED@
LIBRARY_PATH = ..:@CONFIGURE_LIBS_TEST@
INSTALL = @INSTALL@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
datarootdir = @datarootdir@
docdir = @docdir@
default: FORCE
cd libxnd && $(MAKE)
$(INSTALL) -m 644 libxnd/xnd.h python/xnd
$(INSTALL) -m 644 libxnd/$(LIBSTATIC) python/xnd
$(INSTALL) -m 755 libxnd/$(LIBSHARED) python/xnd
cd python/xnd && ln -sf $(LIBSHARED) $(LIBSONAME) && ln -sf $(LIBSHARED) $(LIBNAME)
runtest: default
cd libxnd/tests && $(MAKE)
check: runtest
cd libxnd/tests && ./runtest
@printf "\n\n"
cd libxnd/tests && @LIBRARY_PATH@=$(LIBRARY_PATH) ./runtest_shared
memcheck: runtest
cd libxnd/tests && valgrind --leak-check=full --show-leak-kinds=all ./runtest
@printf "\n\n"
cd libxnd/tests && @LIBRARY_PATH@=$(LIBRARY_PATH) valgrind --leak-check=full --show-leak-kinds=all ./runtest_shared
install: install_libs @NDT_INSTALL_DOCS@
install_libs: FORCE
$(INSTALL) -d -m 755 $(DESTDIR)$(includedir)
$(INSTALL) -m 644 libxnd/xnd.h $(DESTDIR)$(includedir)
$(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
$(INSTALL) -m 644 libxnd/$(LIBSTATIC) $(DESTDIR)$(libdir)
$(INSTALL) -m 755 libxnd/$(LIBSHARED) $(DESTDIR)$(libdir)
cd $(DESTDIR)$(libdir) && ln -sf $(LIBSHARED) $(LIBSONAME) && ln -sf $(LIBSHARED) $(LIBNAME)
install_docs: FORCE
$(INSTALL) -d -m 755 $(DESTDIR)$(docdir)
cp -R doc/* $(DESTDIR)$(docdir)
clean: FORCE
cd libxnd && if [ -f Makefile ]; then $(MAKE) clean; else exit 0; fi
cd libxnd/tests && if [ -f Makefile ]; then $(MAKE) clean; else exit 0; fi
rm -rf build
cd python/xnd && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME)
cd python/xnd && rm -rf __pycache__
cd python/xnd/contrib && rm -rf __pycache__
distclean: FORCE
cd libxnd && if [ -f Makefile ]; then $(MAKE) distclean; else exit 0; fi
cd libxnd/tests && if [ -f Makefile ]; then $(MAKE) distclean; else exit 0; fi
rm -f config.h config.log config.status Makefile
rm -rf build dist MANIFEST ndtypes record.txt
cd python && rm -rf ndtypes *.egg-info __pycache__ ndtypes.egg-info
cd python/xnd && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME) xnd.h
cd python/xnd && rm -rf __pycache__
cd python/xnd/contrib && rm -rf __pycache__
cd .conda/xnd && rm -rf test
FORCE: