awips2/nativeLib/build.native/makefile.cots
Bryan Kowal f60d0ff125 Omaha #3189 - update the PostgreSQL used by hydro / mpe NativeLib to match the baseline AWIPS II version.
amend: remove debug code

Change-Id: I16d16576af71ad02821c8e65c10081bda5d061e3

Former-commit-id: 2ed7be0b50 [formerly 5ca6dfbf90] [formerly c6518e7378] [formerly 2ed7be0b50 [formerly 5ca6dfbf90] [formerly c6518e7378] [formerly 76cd1c2ac8 [formerly c6518e7378 [formerly 9ad4422eb9911f8fbf0c5db40103ee8a1d925570]]]]
Former-commit-id: 76cd1c2ac8
Former-commit-id: 3da0250e22 [formerly 5f438c4a08] [formerly 9cf4ec67daf3fedeef46142cce66d82caad1e57e [formerly b6baecf271]]
Former-commit-id: 73a756fd6e694288ee421a6adbbfc1c8c33563a4 [formerly 112cca8b8a]
Former-commit-id: 72c92e6571
2014-05-20 11:02:31 -05:00

43 lines
No EOL
1.1 KiB
Text

# cots makefile for compiling a cots project from source contained
# within a tar file. the cots project is assumed to use the gnu
# build system
.SILENT:
tar_files = $(wildcard *.tar.bz2 *.tar.gz)
target_dir = $(realpath .)/$(INSTALL_TO)
ifndef make_dir
make_dir = $(realpath .)/$(basename $(basename $(tar_files)))
endif
install_complete_marker = installed~
all: $(make_dir) $(install_complete_marker)
$(make_dir):
ifneq ($(strip $(tar_files)),)
@tar -xf $(tar_files)
endif
$(install_complete_marker):
/bin/sh -c "cd $(strip $(make_dir));./configure $(configure_options) --prefix=$(target_dir)"
$(MAKE) -C $(make_dir) -j2
$(MAKE) -C $(make_dir) install
@echo "$(basename $(basename $(tar_files))) installed to: $(target_dir)"
@echo on `date` to $(INSTALL_TO) > $(install_complete_marker)
@echo configure_options: $(configure_options) >> $(install_complete_marker)
@echo environment: `env` >> $(install_complete_marker)
clean:
-@rm -f $(install_complete_marker)
-$(MAKE) -C $(make_dir) uninstall
-$(MAKE) -C $(make_dir) $@
-@rm -f $(make_dir)/Makefile
-@rm -rf $(make_dir)
.PHONY: all
%:
@make -C $(make_dir) $@