-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
57 lines (43 loc) · 1.72 KB
/
Makefile
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
# This Makefile is part of MOSSCO
#
# SPDX-FileCopyrightText 2021-2022 Helmholtz-Zentrum Hereon
# SPDX-FileCopyrightText 2013-2021 Helmholtz-Zentrum Geesthacht
# SPDX-FileCopyrightText 2013-2022 Institut für Ostseeforschung Warnemünde
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileContributor Carsten Lemmen <[email protected]
# SPDX-FileContributor Knut Klingbeil <[email protected]>
#
# MOSSCO is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License v3+. MOSSCO is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY. Consult the file
# LICENSE.GPL or www.gnu.org/licenses/gpl-3.0.txt for the full license terms.
#
EXTRA_DIST = README ACKNOWLEDGEMENTS AUTHORS .gitignore
SUBDIRS = doc src examples external
export MOSSCO_DATE:=$(shell date "+%Y%m%d")
include $(MOSSCO_DIR)/src/Rules.make
.PHONY: all extraclean subdirs $(SUBDIRS)
all: src
clean: extraclean
extraclean:
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
@rm -rf modules lib bin libraries include
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
check:
make -C src check
update:
git pull
$(MAKE) -C external $@
run: examples
(cd examples/omexdia_p && ./omexdia_p_test)
(cd examples/esmf_sediment && ./esmf_sediment_test)
(cd examples/esmf_gotm && ./esmf_gotm_example)
archive:
@git archive --format=tar.gz --prefix=mossco-code-$(MOSSCO_DATE)/ HEAD > $(MOSSCO_DIR)/../mossco-code-$(MOSSCO_DATE).tar.gz
ifdef MOSSCO_SF_USER
rsync -e ssh -t $(MOSSCO_DIR)/../mossco-code-$(MOSSCO_DATE).tar.gz $(MOSSCO_SF_USER)@frs.sf.net:/home/pfs/p/mossco/Snapshots/
else
@echo "To upload, set the environment variable MOSSCO_SF_USER to your sourceforge user name."
endif