-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile.in
63 lines (47 loc) · 1.99 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
# ==============================================================================
# Unix Makefile for libgumath
# ==============================================================================
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 libgumath && $(MAKE)
$(INSTALL) -m 644 libgumath/gumath.h python/gumath
$(INSTALL) -m 644 libgumath/$(LIBSTATIC) python/gumath
$(INSTALL) -m 755 libgumath/$(LIBSHARED) python/gumath
cd python/gumath && ln -sf $(LIBSHARED) $(LIBSONAME) && ln -sf $(LIBSHARED) $(LIBNAME)
install: install_libs @NDT_INSTALL_DOCS@
install_libs: FORCE
$(INSTALL) -d -m 755 $(DESTDIR)$(includedir)
$(INSTALL) -m 644 libgumath/gumath.h $(DESTDIR)$(includedir)
$(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
$(INSTALL) -m 644 libgumath/$(LIBSTATIC) $(DESTDIR)$(libdir)
$(INSTALL) -m 755 libgumath/$(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 libgumath && if [ -f Makefile ]; then $(MAKE) clean; else exit 0; fi
rm -rf build
cd python/gumath && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME)
cd python/gumath && rm -rf __pycache__
cd tools && rm -f detect_cuda_arch
distclean: FORCE
cd libgumath && 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 xnd record.txt
cd python && rm -rf ndtypes xnd *.egg-info __pycache__ ndtypes.egg-info
cd python/gumath && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME) gumath.h
cd python/gumath && rm -rf __pycache__
FORCE: