Skip to content

Commit

Permalink
make Makefile run the local fixed package test (which fails so far)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfngfn committed Feb 14, 2024
1 parent d1e1d43 commit b2973c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
INIT_DOC = init-doc/foo
INIT_MD = init-md/foo
INIT_LIB = init-lib
LOCAL_FIXED = local-fixed/doc

DOC_TARGETS = \
clip.pdf \
Expand All @@ -16,6 +17,7 @@ DOC_TARGETS = \
rename-dep1.pdf \
$(INIT_DOC).pdf \
$(INIT_MD).pdf \
$(LOCAL_FIXED).pdf \
# first.pdf \
# math1.pdf \
# refactor4.pdf \
Expand Down Expand Up @@ -78,6 +80,7 @@ clean-init::
rm -f $(INIT_MD).md $(INIT_MD).saphe.yaml
rm -f $(INIT_MD).saphe.lock.yaml $(INIT_MD).satysfi-deps.yaml $(INIT_MD).satysfi-aux $(INIT_MD).pdf
rm -rf $(INIT_LIB)
rm -f $(LOCAL_FIXED).saphe.lock.yaml

# Dependencies on program files:
clip.pdf: head.satyh
Expand Down Expand Up @@ -116,3 +119,10 @@ $(INIT_LIB)/saphe.lock.yaml: $(INIT_LIB)/saphe.yaml
$(INIT_LIB)/satysfi-deps.yaml: $(INIT_LIB)/saphe.lock.yaml
$(SAPHE) build $(INIT_LIB)
$(SAPHE) test $(INIT_LIB)

# Tests for local fixed packages:
$(LOCAL_FIXED).saphe.lock.yaml: $(LOCAL_FIXED).saty $(LOCAL_FIXED).saphe.yaml
$(SAPHE) solve $<

$(LOCAL_FIXED).pdf: $(LOCAL_FIXED).saty $(LOCAL_FIXED).saphe.lock.yaml
$(SAPHE) build $< -o $@

0 comments on commit b2973c1

Please sign in to comment.