f38e5dc68bf6f38793f31e56d7728a8fb4ac3892 galt Sun Oct 4 14:57:54 2020 -0700 Fixing makefiles to not depend on git repo commands when run from decompressed source code archive without any git repo. Requested by MarkD and Max. diff --git src/hg/cirm/gateway/htdocs/makefile src/hg/cirm/gateway/htdocs/makefile index a7d51c8..f02e771 100644 --- src/hg/cirm/gateway/htdocs/makefile +++ src/hg/cirm/gateway/htdocs/makefile @@ -1,26 +1,34 @@ kentSrc = ../../../.. include ../../../../inc/common.mk #Get list of files to copy over. Will only copy over files which are being tracked by git. +ifeq (${FIND},) + INSIDEGIT := $(shell git rev-parse --is-inside-work-tree 2>/dev/null) + ifeq (${INSIDEGIT},true) FIND = gitFiles + else + FIND = find + endif +endif + 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}/