From: Bastian Dehn Date: Fri, 3 Apr 2026 12:21:40 +0000 (+0200) Subject: change build parts include X-Git-Tag: v1.1.4^2~10 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=3c09c0d5719768abbda7e90c8a8e5b114f2c6f20;p=scantopdf.git change build parts include --- diff --git a/Makefile b/Makefile index 234a8a5..8765641 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,17 @@ clean: ################################################################################ +$(BUILDDIR)/parts/scanbasic.sh: \ + $(SRCDIR)/scanbasic.sh + + mkdir -p $(@D) + ./tools/includer $(SRCDIR)/scanbasic.sh \ + > $(BUILDDIR)/parts/scanbasic.sh + +################################################################################ + $(PACKAGEDIR)/$(BINDIR)/scantopdf: \ - $(SRCDIR)/scanbasic.sh \ + $(BUILDDIR)/parts/scanbasic.sh \ $(SRCDIR)/scantopdf mkdir -p $(@D) @@ -41,7 +50,7 @@ $(PACKAGEDIR)/$(BINDIR)/scantopdf: \ chmod 755 $(PACKAGEDIR)/$(BINDIR)/scantopdf $(PACKAGEDIR)/$(BINDIR)/scantopdfgray: \ - $(SRCDIR)/scanbasic.sh \ + $(BUILDDIR)/parts/scanbasic.sh \ $(SRCDIR)/scantopdfgray mkdir -p $(@D) @@ -51,7 +60,7 @@ $(PACKAGEDIR)/$(BINDIR)/scantopdfgray: \ chmod 755 $(PACKAGEDIR)/$(BINDIR)/scantopdfgray $(PACKAGEDIR)/$(BINDIR)/scantopdfbw: \ - $(SRCDIR)/scanbasic.sh \ + $(BUILDDIR)/parts/scanbasic.sh \ $(SRCDIR)/scantopdfbw mkdir -p $(@D) diff --git a/src/scantopdf b/src/scantopdf index 2295f73..a157dc4 100755 --- a/src/scantopdf +++ b/src/scantopdf @@ -1,5 +1,5 @@ #!/bin/bash -#include "scanbasic.sh" +#include "../build/parts/scanbasic.sh" main() { diff --git a/src/scantopdfbw b/src/scantopdfbw index b3b0786..8247ef2 100755 --- a/src/scantopdfbw +++ b/src/scantopdfbw @@ -1,5 +1,5 @@ #!/bin/bash -#include "scanbasic.sh" +#include "../build/parts/scanbasic.sh" main() { diff --git a/src/scantopdfgray b/src/scantopdfgray index e3741da..70d05e2 100755 --- a/src/scantopdfgray +++ b/src/scantopdfgray @@ -1,5 +1,5 @@ #!/bin/bash -#include "scanbasic.sh" +#include "../build/parts/scanbasic.sh" main() { diff --git a/tests/scanbasic.bats b/tests/scanbasic.bats index 6eb67cd..481c9d9 100755 --- a/tests/scanbasic.bats +++ b/tests/scanbasic.bats @@ -4,7 +4,7 @@ setup() { load "/usr/lib/bats/bats-assert/load" load "/usr/lib/bats/bats-support/load" - source ./src/scanbasic.sh + source ./build/parts/scanbasic.sh } @test "should failure optimize input parameter is missing" {