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/htdocs/style/makefile src/hg/htdocs/style/makefile index 7046b07..8cc154a 100644 --- src/hg/htdocs/style/makefile +++ src/hg/htdocs/style/makefile @@ -1,21 +1,29 @@ kentSrc = ../../.. include ../../../inc/common.mk # recursive target to do install to DEST, with extra excludes EXCL. +ifeq (${FIND},) + INSIDEGIT := $(shell git rev-parse --is-inside-work-tree 2>/dev/null) + ifeq (${INSIDEGIT},true) FIND = gitFiles + else + FIND = find + endif +endif + CSS_FILES=HGStyle.css autocomplete.css blueStyle.css encodeProject.css floretStyle.css \ hgHubConnect.css jquery-ui.css jquery.contextmenu.css \ jquery.ui.autocomplete.css jquery.ui.colorPicker.css \ jquery.treetable.css jquery.treetable.theme.default.css \ jWest.css jWest.afterNiceMenu.css \ theme-modern.css ui.dropdownchecklist.css nice_menu.css \ encodeDataMatrix.css encodeDataSummary.css userAccounts.css \ encode3.css encode3Ucsc.css bootstrap.min.css \ gbStatic.css gb.css gbAfterMenu.css hgGtexTrackSettings.css spectrum.min.css user: if test -d ${DOCUMENTROOT}-${USER}; then \ ${MAKE} doInstall DEST=${DOCUMENTROOT}-${USER}/style; \ fi