-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.am
134 lines (114 loc) · 3.72 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
ACLOCAL_AMFLAGS = -I m4
CPP = @CPP@
AM_CPPFLAGS = @AM_CPPFLAGS@
SUBDIRS = \
Modules \
tests \
FreeON \
SCFeqs \
OneE \
QCTC \
HiCu \
TwoE \
ONX \
Validate \
tools \
BasisSets
EXTRA_DIST = localversion FreeON.bibtex
CLEANFILES = *~
DISTCLEANFILES = MondoConfig.h MondoLocalVersion.h
CONFIG_STATUS_DEPENDENCIES = \
$(top_srcdir)/Doxyfile.in \
$(top_srcdir)/localversion
docs :
doxygen
$(MAKE) -C latex
#DISTCHECK_CONFIGURE_FLAGS = --disable-optimizations --enable-internal-lapack-checks
# Phony targets.
.PHONY : validate tags
# Clean out everything except for things that are excrutiatingly long to
# rebuild.
quickclean :
$(MAKE) -C FreeON clean
$(MAKE) -C SCFeqs clean
$(MAKE) -C OneE clean
$(MAKE) -C HiCu clean
$(MAKE) -C ONX clean
# Cryptographically sign the dist.
dist-sign : localversion dist
rm -f $(distdir).tar.bz2.sig
gpg -b $(distdir).tar.bz2
# Upload dist file to Savannah.
dist-upload : dist-sign
if test -e freeon-latest.tar.bz2; then \
echo "freeon-latest.tar.bz2 already exists"; \
else \
echo "sending dist to savannah"; \
ln -s $(distdir).tar.bz2 freeon-latest.tar.bz2; \
rsync -av --progress $(distdir).tar.bz2 freeon-latest.tar.bz2 $(distdir).tar.bz2.sig [email protected]:/releases/freeon/; \
rm -f freeon-latest.tar.bz2; \
fi
# Download all files in Downloads area.
download :
if test ! -d Downloads; then \
mkdir Downloads; \
fi
rsync -ave ssh --progress --partial --delete [email protected]:/releases/freeon/ Downloads/
# Upload all files in Downloads area.
upload :
if test ! -d Downloads; then \
echo "there is no Downloads folder"; \
exit 1; \
fi
rsync -ave ssh --progress --partial --delete Downloads/ [email protected]:/releases/freeon/
# Build a debian source package.
debian-package :
$(MAKE) dist
mv $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 $(PACKAGE_TARNAME)_$(PACKAGE_VERSION).orig.tar.bz2
rm -rf $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
tar xf $(PACKAGE_TARNAME)_$(PACKAGE_VERSION).orig.tar.bz2
rsync -a debian $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/
cd $(PACKAGE_TARNAME)-$(PACKAGE_VERSION); \
debuild -S
# Build a debian binary package.
debian-binary-package :
$(MAKE) dist
mv $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 $(PACKAGE_TARNAME)_$(PACKAGE_VERSION).orig.tar.bz2
rm -rf $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
tar xf $(PACKAGE_TARNAME)_$(PACKAGE_VERSION).orig.tar.bz2
rsync -a debian $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/
cd $(PACKAGE_TARNAME)-$(PACKAGE_VERSION); \
debuild
# Validate.
validate :
$(MAKE) -C Validate validate
# dependency checks.
depcheck :
$(MAKE) -C Modules depcheck-lib
$(MAKE) -C FreeON depcheck-bin
$(MAKE) -C SCFeqs depcheck-bin
$(MAKE) -C OneE depcheck-bin
$(MAKE) -C QCTC depcheck-bin
$(MAKE) -C HiCu depcheck-bin
$(MAKE) -C ONX depcheck-bin
$(top_builddir)/MondoLocalVersion.h : $(top_builddir)/config_localversion.h
@echo "checking MondoLocalVersion.h"
@grep LOCAL_VERSION $(top_builddir)/config_localversion.h > $(top_builddir)/tempconf
@if test ! -f $(top_builddir)/MondoLocalVersion.h; then \
mv -f $(top_builddir)/tempconf $(top_builddir)/MondoLocalVersion.h; \
echo "MondoLocalVersion.h did not exist"; \
elif (diff -u $(top_builddir)/MondoLocalVersion.h $(top_builddir)/tempconf > $(top_builddir)/MondoLocalVersion.diff); then \
rm -f $(top_builddir)/tempconf; \
echo "MondoLocalVersion.h unchanged"; \
else \
mv -f $(top_builddir)/tempconf $(top_builddir)/MondoLocalVersion.h; \
echo "MondoLocalVersion.h updated"; \
cat $(top_builddir)/MondoLocalVersion.diff; \
fi
# In case we have ctags installed, make the necessary tags files.
tags :
$(MAKE) -C Modules tags
$(MAKE) -C FreeON tags
$(MAKE) -C SCFeqs tags
$(MAKE) -C OneE tags
$(MAKE) -C QCTC tags