forked from cooperative-computing-lab/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (42 loc) · 1.61 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
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
cp config.mk ${CCTOOLS_INSTALL_DIR}/etc/
mkdir -p ${CCTOOLS_INSTALL_DIR}/doc
cp COPYING ${CCTOOLS_INSTALL_DIR}/doc/
cp README ${CCTOOLS_INSTALL_DIR}/doc/
test: $(CCTOOLS_PACKAGES)
./run_all_tests.sh
rpm:
./packaging/rpm/rpm_creator.sh $(RPM_VERSION) $(RPM_RELEASE)
.PHONY: $(CCTOOLS_PACKAGES) $(INSTALL_PACKAGES) $(CLEAN_PACKAGES) all clean install test rpm