diff --git a/.gitignore b/.gitignore index cf5fbf7..f0dc7fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ pdf_to_img +pdf_to_img.exe output_images/ \ No newline at end of file diff --git a/Makefile b/Makefile index 5a4e3fd..66be1f7 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ all: - cd src/ && go build && mv pdf_to_img .. \ No newline at end of file + cd src/ && go build && mv pdf_to_img .. + +windows: + cd src/ && CC=/usr/bin/x86_64-w64-mingw32-gcc GOOS=windows CGO_ENABLED=1 GOARCH=amd64 go build -tags=static && mv pdf_to_img.exe .. \ No newline at end of file