Skip to content

Commit

Permalink
Fix make recipes order
Browse files Browse the repository at this point in the history
  • Loading branch information
mczyz-antmicro committed Jun 26, 2023
1 parent 5b2d9d1 commit dffb81f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/scripts/indexgen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source.template
GENDIR = source
BUILDDIR = build
BUILDDIR ?= build
ROOTDIR ?= work

all: clean html

# Sources
SOURCES = $(wildcard $(SOURCEDIR)/*.md)

Expand All @@ -22,11 +24,8 @@ html: Makefile $(GENDIR)/index.md
@rsync -avr "$(ROOTDIR)/" "$(BUILDDIR)/html"
@bash update_styles.sh "$(BUILDDIR)"

all: html

clean:
@rm -rf $(BUILDDIR)
@rm -rf $(GENDIR)

.PHONY: all clean html

2 changes: 1 addition & 1 deletion .github/scripts/indexgen/update_styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ update_styles(){
echo -e "${COLOR_WHITE}========== $ASSET =========${COLOR_CLEAR}"
copy_files $ASSET $(basename "$ASSET")
done
echo -e "${COLOR_GREEN}UPDATE_STYLES.SH SUCCEEDED${COLOR_CLEAR}"
echo -e "${COLOR_WHITE}Update styles ${COLOR_GREEN}SUCCEEDED${COLOR_CLEAR}"
echo -e "${COLOR_WHITE}==========================${COLOR_CLEAR}"
}

Expand Down
8 changes: 4 additions & 4 deletions .github/scripts/update_webpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ update_webpage(){
LOC_GITHUB_EVENT_NAME=$2
PR_NUMBER=$3
echo -e "${COLOR_WHITE}========== update_webpage args =========${COLOR_CLEAR}"
echo -e "${COLOR_WHITE}LOC_GITHUB_REF_NAME = ${LOC_GITHUB_REF_NAME}"
echo -e "${COLOR_WHITE}LOC_GITHUB_REF_NAME = ${LOC_GITHUB_REF_NAME}"
echo -e "${COLOR_WHITE}LOC_GITHUB_EVENT_NAME = ${LOC_GITHUB_EVENT_NAME}"
echo -e "${COLOR_WHITE}PR_NUMBER = ${PR_NUMBER}"

Expand All @@ -65,10 +65,10 @@ update_webpage(){
replace_dir ./coverage_dashboard ${PUBLIC_DIR}/${DIR}/coverage_dashboard
replace_dir ./verification_dashboard ${PUBLIC_DIR}/${DIR}/verification_dashboard

make -C .github/scripts/indexgen ROOTDIR=`realpath ./public.old` BUILDDIR=`realpath ./public.new`

make -C .github/scripts/indexgen all ROOTDIR=`realpath ./public.old` BUILDDIR=`realpath ./public.new`
echo -e "${COLOR_WHITE}Makefile exit status:$?${COLOR_CLEAR}"
echo -e "${COLOR_WHITE}================= tree =================${COLOR_CLEAR}"
tree ./public.new/
tree -d -L 3 ./public.new/

echo -e "${COLOR_WHITE}Webpage update ${COLOR_GREEN}SUCCEEDED${COLOR_CLEAR}"
echo -e "${COLOR_WHITE}============ update_webpage ============${COLOR_CLEAR}"
Expand Down

0 comments on commit dffb81f

Please sign in to comment.