forked from cooperative-computing-lab/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (53 loc) · 2.07 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
58
59
60
61
62
63
64
65
66
67
68
69
70
include config.mk
# export all variables in config.mk
export
include rules.mk
CYGWINLIB = cygwin1.dll cyggcc_s-1.dll cygintl-8.dll cygreadline7.dll cygncursesw-10.dll cygiconv-2.dll cygattr-1.dll sh.exe
#set the default values for RPM_VERSION and RPM_RELEASE
RPM_VERSION=4.4.1
RPM_RELEASE=1
all: $(CCTOOLS_PACKAGES)
config.mk:
@echo "You must run 'configure' before '${MAKE}'."
@exit 1
batch_job chirp taskvine deltadb ftp_lite tlq makeflow makeflow_linker parrot resource_monitor work_queue grow: dttools
makeflow: batch_job
parrot: ftp_lite grow
batch_job parrot: chirp
batch_job makeflow: work_queue
batch_job makeflow: taskvine
clean-config:
rm -f .configure.tmp.o cctools.test.log cctools.test.fail cctools.test.tmp configure.rerun
$(CCTOOLS_PACKAGES): config.mk
@$(MAKE) -C $@
CLEAN_PACKAGES = $(CCTOOLS_PACKAGES:%=clean-%)
$(CLEAN_PACKAGES):
@$(MAKE) -C $(@:clean-%=%) clean
clean: $(CLEAN_PACKAGES) clean-config
INSTALL_PACKAGES = $(CCTOOLS_PACKAGES:%=install-%)
$(INSTALL_PACKAGES): $(CCTOOLS_PACKAGES)
@$(MAKE) -C $(@:install-%=%) install
install: $(INSTALL_PACKAGES)
mkdir -p $(CCTOOLS_INSTALL_DIR)/bin
for file in $(CYGWINLIB) ; do if [ -f /bin/$$file ] ; then cp /bin/$$file $(CCTOOLS_INSTALL_DIR)/bin/ ; fi ; done
mkdir -p ${CCTOOLS_INSTALL_DIR}/etc/cctools
cp config.mk ${CCTOOLS_INSTALL_DIR}/etc/cctools
mkdir -p ${CCTOOLS_INSTALL_DIR}/doc/cctools
cp README.md COPYING CREDITS ${CCTOOLS_INSTALL_DIR}/doc/cctools
test: $(CCTOOLS_PACKAGES)
./run_all_tests.sh
PACKAGES_TO_LINT = taskvine resource_monitor batch_job dttools poncho
LINT_PACKAGES = $(PACKAGES_TO_LINT:%=lint-%)
$(LINT_PACKAGES): config.mk
@$(MAKE) -C $(@:lint-%=%) lint
lint: $(LINT_PACKAGES)
PACKAGES_TO_FORMAT = taskvine resource_monitor batch_job dttools
FORMAT_PACKAGES = $(PACKAGES_TO_FORMAT:%=format-%)
$(FORMAT_PACKAGES): config.mk
@$(MAKE) -C $(@:format-%=%) format
format: $(FORMAT_PACKAGES)
doc_serve:
mkdocs serve -f doc/mkdocs.yml
rpm:
./packaging/rpm/rpm_creator.sh $(RPM_VERSION) $(RPM_RELEASE)
.PHONY: $(CCTOOLS_PACKAGES) $(INSTALL_PACKAGES) $(CLEAN_PACKAGES) all clean install test lint rpm