PROD = ALS_DB PRODDIRNAME = ALS_DB_DIR PRODDIR = $(ALS_DB_DIR) SHELL = /bin/sh install_dir : @if [ "$(PRODDIR)" = "" ]; then \ echo You have not specified a destination directory >&2; \ exit 1; \ fi @if [ "$(DIR)" = "" ]; then \ echo Internal error in makefile ... make sure DIR is set; \ exit 1; \ fi @rm -rf $(PRODDIR)/$(DIR) @mkdir $(PRODDIR)/$(DIR) @-cp Makefile $(FILES) $(PRODDIR)/$(DIR) @chgrp products $(PRODDIR)/$(DIR)/* @chmod 644 $(PRODDIR)/$(DIR)/* install_subdir: @if [ "$(PRODDIR)" = "" ]; then \ echo You have not specified a destination directory >&2; \ exit 1; \ fi @if [ "$(DIR)" = "" ]; then \ echo Internal error in makefile ... make sure DIR is set; \ exit 1; \ fi @if [ "$(SUBDIR)" = "" ]; then \ echo Internal error in makefile ... make sure SUBDIR is set; \ exit 1; \ fi @ for subdir in $(SUBDIR); do \ if [ -d $$subdir ]; then \ if [ ! -r $(PRODDIR)/$(DIR)/$$subdir ]; then \ mkdir $(PRODDIR)/$(DIR)/$$subdir; \ fi; \ (cd $$subdir; echo ""; echo "installing ./$(DIR)/$$subdir"; echo ""; $(MAKE) $(MFLAGS) install); \ else \ echo "Subdirectory does not exist: ./$(DIR)/$$subdir"; \ fi; \ done clean_dir : @rm -f core *~ *.bak *.jou MAIN.0 MAIN.0.* *.orig *.old .'#'* '#'*'#'