Skip to content

Commit

Permalink
try using relative paths, fix recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 10, 2024
1 parent a9d9389 commit fcdee20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ help:
html dirhtml singlehtml epub latex:
@$(MAKE) docs_$@ $(MFLAGS)

clean: cs_clean cp_clean c_clean js_clean py_clean rs_clean docs_clean
clean: cs_clean cp_clean c_clean ja_clean js_clean py_clean rs_clean docs_clean

cs_%:
@cd csharp && $(MAKE) $* $(MFLAGS)
Expand All @@ -67,4 +67,4 @@ rs_%:
@cd rust && $(MAKE) $* $(MFLAGS)

%:
@$(MAKE) c_$* cp_$* cs_$* js_$* py_$* rs_$* $(MFLAGS)
@$(MAKE) c_$* cp_$* cs_$* ja_$* js_$* py_$* rs_$* $(MFLAGS)
6 changes: 3 additions & 3 deletions java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ dependencies:
$(MVN) install -B

test: dependencies
$(MVN) test -e -Dtest.single
$(MVN) -e test -Dtest.single

test_auto: dependencies
$(MVN) test -e -T 1C
$(MVN) -e test -T 1C

test_%: dependencies
$(MVN) test -e -T $*
$(MVN) -e test -T $*

lint:
$(MVN) formatter:format
4 changes: 2 additions & 2 deletions java/src/main/java/euler/lib/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private static Path getDataPath(String name) throws IOException {
Path classPath = Paths.get(Utilities.class.getProtectionDomain().getCodeSource().getLocation().getPath());
Path classDir = classPath.getParent();
Path filePath = classDir.getParent().getParent().resolve("_data").resolve(name);
return filePath.toAbsolutePath();
return filePath;
}

public static byte[] getDataFileBytes(String name) throws IOException {
Expand Down Expand Up @@ -80,4 +80,4 @@ public static Object getAnswer(long n) throws IOException {
}
throw new IOException("Answer not found.");
}
}
}

0 comments on commit fcdee20

Please sign in to comment.