-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
75 lines (62 loc) · 2.48 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
## Process this file with automake to produce Makefile.in
## Copyright (C) 2002 M. Marques, A. Castro, A. Rubio, G. Bertsch
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
##
## $Id: Makefile.am 6360 2010-03-21 00:37:36Z xavier $
ACLOCAL_AMFLAGS = -I m4
if ENABLE_PERL
PERL_DIR = perl
endif
SUBDIRS = \
build external_libs liboct_parser \
src share doc testsuite $(PERL_DIR)
EXTRA_DIST = \
ChangeLog PACKAGING \
TODO \
debian/changelog debian/control debian/copyright debian/dirs \
debian/info debian/README.Debian debian/rules
DISTCLEANFILES = \
ChangeLog config.log config.status
DEB_DIR = deb-work
check-full:
$(MAKE) -C testsuite check-full
rpm: dist
@topdir=`rpmbuild --showrc | @GREP@ ': *_topdir' | cut -f 2`; \
mv -f $(PACKAGE)-$(VERSION).tar.gz $$topdir/SOURCES; \
cp build/$(PACKAGE).spec $$topdir/SPECS; \
rpmbuild -ba $$topdir/SPECS/$(PACKAGE).spec; \
echo "-------------------------------------------------------------"; \
echo " RPMs are built, and are located under:"; \
echo " $$topdir/RPMS/<arch>"; \
echo " $$topdir/SRPMS"; \
echo "-------------------------------------------------------------"
# scp $(RPM_DIR)/RPMS/*/octopus*.rpm \
[email protected]:/server/www/tddft.org/programs/octopus/download/
deb: dist
rm -rf $(DEB_DIR)
mkdir $(DEB_DIR)
mv -f $(PACKAGE)-$(VERSION).tar.gz $(DEB_DIR)
(cd $(DEB_DIR); tar xzf *gz; cd $(PACKAGE)-$(VERSION); debuild -E -ePATH)
rm -rf $(DEB_DIR)/$(PACKAGE)-$(VERSION)
scp $(DEB_DIR)/octopus*.deb \
[email protected]:/server/www/tddft.org/programs/octopus/download/
.PHONY: ChangeLog
ChangeLog:
(svn2cl -i -r {20090101}:BASE -o .changelog.tmp \$(top_srcdir) && \
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
echo 'svn2cl command not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog