forked from DOCGroup/ACE_TAO
-
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.
Added a script install_proj.sh that can be used to run make install
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 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
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,15 @@ | ||
include $(PROJECT_MAKEFILE) | ||
|
||
POTENTIAL_FILES = $(BIN_UNCHECKED) $(SHLIB_UNCHECKED) $(LIB_UNCHECKED) | ||
ACTUAL_FILES := $(wildcard $(POTENTIAL_FILES)) | ||
|
||
.PHONY: checked-install | ||
ifeq ($(ACTUAL_FILES),) | ||
checked-install: | ||
@echo Skipping $(PROJECT_MAKEFILE:GNUmakefile.%=%), not built | ||
else | ||
.PHONY: checked-install-message | ||
checked-install-message: | ||
@echo Installing $(ACTUAL_FILES) | ||
checked-install: checked-install-message install | ||
endif |
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,13 @@ | ||
#!/bin/sh | ||
|
||
# ACE's "make install" for an MPC-generated workspace will build all targets that aren't yet built | ||
# This script looks for projects that have been built and installs just those projects | ||
this_dir=$(realpath $(dirname $0)) | ||
for makefile in $(find . -type f -name 'GNUmakefile.*'); do | ||
if grep -q 'GNU Makefile' $makefile; then | ||
echo Checking $makefile | ||
cd $(dirname $makefile) | ||
make -f $this_dir/install_proj.mk PROJECT_MAKEFILE=$(basename $makefile) checked-install "$@" | ||
cd - >/dev/null | ||
fi | ||
done |