-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeRules
87 lines (63 loc) · 3.15 KB
/
MakeRules
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
-include ./MakeVars
all:: default
default:: $(TOPDIR)/lib/$(TARGET)
INSTALL_TARGETS = install_inc install_target install_pkgconfig install_data
ifeq ($(ENABLE_FORTRAN),yes)
INSTALL_TARGETS += install_fortran
endif
install:: $(INSTALL_TARGETS)
install_inc:: $(TOPDIR)/lib/$(TARGET)
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(includedir)/$(NAME)$(VERSION)
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2.h $(DESTDIR)$(includedir)
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2.hpp $(DESTDIR)$(includedir)
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2/*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2_*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)
-$(INSTALL) $(INSTALLLIBOPT) $(TOPDIR)/include/libint2/config.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/chemistry
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2/chemistry/*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/chemistry
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/lcao
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2/lcao/*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/lcao
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/util
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2/util/*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/util
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/util/generated
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/include/libint2/util/generated/*.h $(DESTDIR)$(includedir)/$(NAME)$(VERSION)/util/generated
if test "X$(HAVE_SYSTEM_BOOST_PREPROCESSOR_VARIADICS)" = "X0"; then `gunzip -c $(SRCTOPDIR)/external/boost.tar.gz | tar -xf - -C $(DESTDIR)$(includedir)/$(NAME)$(VERSION)`; fi
install_pkgconfig::
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(pkgconfigdir)
$(INSTALL) $(INSTALLLIBOPT) $(TOPDIR)/libint2.pc $(DESTDIR)$(pkgconfigdir)
install_data::
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(datadir)/basis
$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/lib/basis/* $(DESTDIR)$(datadir)/basis
install_target:: $(TOPDIR)/lib/$(TARGET)
$(INSTALL) $(INSTALLDIROPT) $(DESTDIR)$(libdir)
$(LTINST) $(INSTALL) $(INSTALLLIBOPT) $< $(DESTDIR)$(libdir)
install_fortran:: fortran
-$(INSTALL) $(INSTALLLIBOPT) $(SRCTOPDIR)/fortran/libint_f.mod $(DESTDIR)$(includedir)
install-pdf:: pdf
(cd doc && make install-pdf) || exit 1
install-ps:: ps
(cd doc && make install-ps) || exit 1
install-dvi:: dvi
(cd doc && make install-dvi) || exit 1
install-html:: html
(cd doc && make install-html) || exit 1
pdf::
(cd doc && make pdf) || exit 1
ps::
(cd doc && make ps) || exit 1
dvi::
(cd doc && make dvi) || exit 1
html::
(cd doc && make html) || exit 1
clean:: oclean targetclean
cd tests; make clean
cd doc; make clean
distclean:: clean
-rm -rf MakeVars MakeRules MakeSuffixRules config.* depcheck* autom4* libtool include/libint2/config.h libint2.pc
cd tests; make distclean
cd doc; make distclean
# this will break for large libraries, moved to MakeFile
#oclean::
# -rm -f src/*.o src/*.lo
targetclean::
-rm -rf $(TOPDIR)/lib/$(TARGET) $(TOPDIR)/lib/.libs/