Skip to content

Commit

Permalink
dir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 27, 2024
1 parent b6d00fd commit c77d814
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ XSLS = $(subst xsl/,target/xsl/,$(wildcard xsl/*.xsl))
JUDGES = judges
DIRS = target target/html target/fb target/xsl target/css
CSS = target/css/main.css
SAXON = target/saxon.jar

export

Expand All @@ -42,7 +43,7 @@ all: $(CSS) $(XSLS) $(HTMLS)
target/xsl/%.xsl: xsl/%.xsl | target/xsl
cp $< $@

target/html/%.html: target/fb/%.fb xsl/*.xsl entry.sh Makefile target/css/main.css | target/html
target/html/%.html: target/fb/%.fb xsl/*.xsl entry.sh Makefile target/css/main.css $(SAXON) | target/html
export INPUT_VERBOSE=yes
export GITHUB_WORKSPACE=.
export INPUT_FACTBASE=$<
Expand All @@ -55,16 +56,16 @@ target/html/%.html: target/fb/%.fb xsl/*.xsl entry.sh Makefile target/css/main.c
target/fb/%.fb: tests/%.yml Makefile | target/fb
$(JUDGES) import $< $@

$(CSS): sass/*.scss | target
$(CSS): sass/*.scss | target/css
sass --no-source-map --style=compressed --no-quiet --stop-on-error $< $@

clean:
rm -rf target

install: target
if [ ! -e target/saxon.jar ]; then
wget --no-verbose -O target/saxon.jar https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar
fi
$(SAXON): | target
wget --no-verbose -O $(SAXON) https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar

install: $(SAXON) | target
gem install judges:0.0.34
npm install -g [email protected]

Expand Down

0 comments on commit c77d814

Please sign in to comment.