awips2/nativeLib/build.native/makefile.dist
Steve Harris 177d322f79 13.5.1-4 baseline
Former-commit-id: b6c2943382 [formerly 2487a8b435] [formerly c56be8a332] [formerly c56be8a332 [formerly 70e4ff30a6]] [formerly e197f23ce3 [formerly c56be8a332 [formerly 70e4ff30a6] [formerly e197f23ce3 [formerly d18b403b332dff67d1c85d4317bbceda337d1b41]]]]
Former-commit-id: e197f23ce3
Former-commit-id: 0d0043b60f5590e0023b02b04652467dab80742c [formerly 3369892ae14fdcfd7af44c724a72588adeb9f95b] [formerly 640b022e84 [formerly f658320357]]
Former-commit-id: 640b022e84
Former-commit-id: 43bb696901
2013-06-28 09:46:25 -04:00

49 lines
No EOL
1.2 KiB
Text

# makefile.dist creates a tar archive of all files within the
# build directory given by the environment variable BUILD_DIR
# files to be included are specified in an include_files.txt file
# file arrangement is controlled by the arrange_files.sh script
.SILENT:
# include optional user defined variables
-include makefile.conf~
files_native=$(wildcard ../files.native)
tmp_location=tmp~/$$(basename $(BUILD_DIR))
init:
ifndef BUILD_DIR
echo BUILD_DIR is not defined
exit 1
endif
_all: init
# copy files from build_dir into tmp_location
mkdir -p $(tmp_location)
rsync -mau --include='*/' --include-from=include_files.txt \
--exclude='*' $(BUILD_DIR)/ $(tmp_location)
# remove _keep_me directory placeholders
find $(tmp_location) -name "_keep_me" -exec rm {} \;
# arrange the files
$$(export tmp_location=$(tmp_location);bash arrange_files.sh)
# finished
_deploy:
# copy files from the tmp_location into files.native
echo $(files_native)
rsync -avz $(tmp_location)/* $(files_native)
clean: init
# rm tmp_location
rm -fr $(tmp_location)
# finished
update: init _all _deploy clean
# include optional user defined targets (and possible target overrides)
-include makefile.targets~