9bdac22e315eb893cbc16ea6ad207e865e128382 galt Fri Apr 5 23:50:31 2019 -0700 fixing cirm gateway makefiles. adding proper targets for user and alpha, moving js dir to be at same level as htdocs which is how genome browser does it. TODO versioned symlinks. diff --git src/hg/cirm/gateway/htdocs/makefile src/hg/cirm/gateway/htdocs/makefile index 5d9a307..a7d51c8 100644 --- src/hg/cirm/gateway/htdocs/makefile +++ src/hg/cirm/gateway/htdocs/makefile @@ -1,29 +1,26 @@ -kentSrc = ../../.. +kentSrc = ../../../.. include ../../../../inc/common.mk -#Get list of files to copy over. Will only copy over files which have been committed. +#Get list of files to copy over. Will only copy over files which are being tracked by git. FIND=gitFiles -CSS_FILES=style/cirmStyle.css -JS_FILES=js/cirmStuff.js -HOSTNAME:=$(shell hostname) - -# Set proper htdocs directory based on what machine we're using -ifeq (${HOSTNAME}, hgwdev) - HTDOCSDIR=${DOCUMENTROOT}-cirm -endif -ifeq (${HOSTNAME}, cirm) - HTDOCSDIR=${DOCUMENTROOT} -endif -ifeq (${HOSTNAME}, cirm-01) - HTDOCSDIR=${DOCUMENTROOT} -endif - -docs: - umask 002; rsync --times --recursive --omit-dir-times --relative --cvs-exclude --exclude='makefile' --exclude='style/*' --exclude='js/*' `$(FIND)` ${HTDOCSDIR} - -styles: - umask 002; rsync --update --times --recursive --omit-dir-times --relative --cvs-exclude --exclude='makefile' $(CSS_FILES) ${HTDOCSDIR} - -jsfiles: - umask 002; rsync --update --times --recursive --omit-dir-times --relative --cvs-exclude --exclude='makefile' $(JS_FILES) ${HTDOCSDIR} + +user: + if test -d ${DOCUMENTROOT}-${USER}; then \ + ${MAKE} doInstall DEST=${DOCUMENTROOT}-${USER}; \ + fi + +alpha: + ${MAKE} doInstall DEST=${DOCUMENTROOT} + +clean: + +compile: + +install: + ${MAKE} doInstall DEST=${DOCUMENTROOT} + +doInstall: + @mkdir -p ${DEST}/ + umask 002; rsync --times --recursive --omit-dir-times --relative --cvs-exclude --exclude='makefile' --exclude='style/*' `$(FIND)` ${DEST}/ +