Skip to content

Commit

Permalink
use PYTHON variable to determine which python to call
Browse files Browse the repository at this point in the history
  • Loading branch information
hanickadot committed Apr 25, 2024
1 parent 713005f commit 02b4165
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ DESATOMAT := /bin/false

CXX_STANDARD := 20

PYTHON := python3.9

PEDANTIC:=-pedantic

override CXXFLAGS := $(CXXFLAGS) -std=c++$(CXX_STANDARD) -Iinclude -O3 $(PEDANTIC) -Wall -Wextra -Werror -Wconversion
Expand Down Expand Up @@ -67,15 +69,15 @@ single-header/unicode-db.hpp: include/unicode-db/unicode-db.hpp
cp $+ $@

single-header/ctre.hpp:
python3 -m quom include/ctre.hpp ctre.hpp.tmp
${PYTHON} -m quom include/ctre.hpp ctre.hpp.tmp
echo "/*" > single-header/ctre.hpp
cat LICENSE >> single-header/ctre.hpp
echo "*/" >> single-header/ctre.hpp
cat ctre.hpp.tmp >> single-header/ctre.hpp
rm ctre.hpp.tmp

single-header/ctre-unicode.hpp:
python3 -m quom include/ctre-unicode.hpp ctre-unicode.hpp.tmp
${PYTHON} -m quom include/ctre-unicode.hpp ctre-unicode.hpp.tmp
echo "/*" > single-header/ctre-unicode.hpp
cat LICENSE >> single-header/ctre-unicode.hpp
echo "*/" >> single-header/ctre-unicode.hpp
Expand Down

0 comments on commit 02b4165

Please sign in to comment.