forked from irods/cctools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Make process for parallel Make.
- Loading branch information
Patrick Donnelly
committed
Jun 21, 2014
1 parent
6f231da
commit 250de7e
Showing
30 changed files
with
126 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include ../Makefile.config | ||
include ../Makefile.rules | ||
|
||
PHONY_TARGETS ?= src | ||
TARGETS ?= $(PHONY_TARGETS) | ||
|
||
$(TARGETS): | ||
@$(MAKE) -C $@ | ||
|
||
CLEAN_TARGETS = $(TARGETS:%=clean-%) | ||
$(CLEAN_TARGETS): | ||
@$(MAKE) -C $(@:clean-%=%) clean | ||
clean: $(CLEAN_TARGETS) | ||
|
||
INSTALL_TARGETS = $(TARGETS:%=install-%) | ||
$(INSTALL_TARGETS): $(TARGETS) | ||
@$(MAKE) -C $(@:install-%=%) install | ||
install: $(INSTALL_TARGETS) | ||
|
||
.PHONY: $(PHONY_TARGETS) all clean install test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
include Makefile.config | ||
include Makefile.rules | ||
|
||
all clean: Makefile.config | ||
for p in ${CCTOOLS_PACKAGES} ; do cd $$p && ${MAKE} $@ && cd .. ; done | ||
all: $(CCTOOLS_PACKAGES) | ||
|
||
test: Makefile.config | ||
./run_all_tests.sh | ||
Makefile.config: | ||
@echo "You must run 'configure' before '${MAKE}'." | ||
@exit 1 | ||
|
||
chirp work_queue sand allpairs wavefront makeflow ftp_lite parrot resource_monitor resource_monitor_visualizer makeflow_linker: dttools | ||
|
||
allpairs: sand work_queue | ||
makeflow: chirp work_queue | ||
parrot: chirp ftp_lite | ||
sand: work_queue | ||
wavefront: chirp work_queue | ||
work_queue: chirp | ||
|
||
$(CCTOOLS_PACKAGES): Makefile.config | ||
@$(MAKE) -C $@ | ||
|
||
install: all Makefile.config | ||
for p in ${CCTOOLS_PACKAGES} ; do cd $$p && ${MAKE} $@ && cd .. ; done | ||
CLEAN_PACKAGES = $(CCTOOLS_PACKAGES:%=clean-%) | ||
$(CLEAN_PACKAGES): | ||
@$(MAKE) -C $(@:clean-%=%) clean | ||
clean: $(CLEAN_PACKAGES) | ||
|
||
INSTALL_PACKAGES = $(CCTOOLS_PACKAGES:%=install-%) | ||
$(INSTALL_PACKAGES): $(CCTOOLS_PACKAGES) | ||
@$(MAKE) -C $(@:install-%=%) install | ||
install: $(INSTALL_PACKAGES) | ||
mkdir -p ${CCTOOLS_INSTALL_DIR}/etc | ||
cp Makefile.config ${CCTOOLS_INSTALL_DIR}/etc/Makefile.config | ||
cp COPYING ${CCTOOLS_INSTALL_DIR}/doc | ||
|
||
Makefile.config: | ||
@echo "You must run 'configure' before '${MAKE}'." | ||
@exit 1 | ||
test: $(CCTOOLS_PACKAGES) | ||
./run_all_tests.sh | ||
|
||
.PHONY: $(CCTOOLS_PACKAGES) $(INSTALL_PACKAGES) $(CLEAN_PACKAGES) all clean install test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
include ../Makefile.config | ||
include ../Makefile.rules | ||
PHONY_TARGETS = wq_replica_exchange | ||
|
||
all test clean: | ||
@for p in wq_replica_exchange; do cd $$p && $(MAKE) $@ && cd .. ; done | ||
|
||
install: | ||
|
||
.PHONY: all test install clean | ||
include ../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ test: | |
|
||
clean: | ||
rm -rf api $(HTMLFILES) $(MANFILES) $(ZIPFILES) *~ | ||
|
||
.PHONY: all clean install test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include ../../Makefile.config | ||
include ../../Makefile.rules | ||
|
||
SCRIPT = resource_monitor_visualizer.py | ||
STATIC_RESOURCES = resource_monitor_visualizer_static | ||
|
||
all: $(SCRIPT) | ||
|
||
clean: | ||
|
||
install: all | ||
mkdir -p ${CCTOOLS_INSTALL_DIR}/bin | ||
mkdir -p ${CCTOOLS_INSTALL_DIR}/lib | ||
cp ${SCRIPT} ${CCTOOLS_INSTALL_DIR}/bin/ | ||
cp -r ${STATIC_RESOURCES} ${CCTOOLS_INSTALL_DIR}/lib/ | ||
|
||
uninstall: | ||
rm -rf ${CCTOOLS_INSTALL_DIR}/lib/$(STATIC_RESOURCES) | ||
rm -f ${CCTOOLS_INSTALL_DIR}/${SCRIPT} | ||
|
||
.PHONY: all clean install test |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.src.Makefile |
Oops, something went wrong.