Added Makefile to build a binary of fgg using the Nuitka Python compiler.

This needs required libraries installed using pip or the OS package manager. It fails executing the resulting binary if libraries are only installed in a virtual environment (venv).
This commit is contained in:
Johannes Findeisen 2022-11-21 02:13:29 +01:00
commit 51c979582c
4 changed files with 19 additions and 2 deletions

4
.gitignore vendored
View file

@ -1,9 +1,9 @@
.idea
fgg.build
out
photo/*
photos/*
tmp/*.dump.json
venv
fgg.bin
bin/fgg
fgg.iml

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
all:
nuitka3 --follow-imports --output-dir=./out/ -o ./bin/fgg fgg
clean:
rm -rf ./bin/fgg
rm -rf ./out
flushcache:
rm -rf ./cache/*
flushphotos:
rm -rf ./photo/*
rm -rf ./photos/*
gallery:
./bin/fgg

0
bin/.gitkeep Normal file
View file

1
fgg
View file

@ -2,6 +2,7 @@
# fgg - A free gallery generator for static site generators like Hugo, Jekyll,
# Nikola etc. using Flickr as data source.
# Source repository: https://git.unixpeople.org/hanez/fgg
# Copyright (c) 2022 Johannes Findeisen
#