2020-01-25 23:18:02 +01:00
|
|
|
all: python
|
2015-12-23 02:04:26 +01:00
|
|
|
python: python2 python3
|
|
|
|
python2:
|
|
|
|
rm -rf py2
|
|
|
|
mkdir -p py2
|
|
|
|
cp *.py py2/
|
|
|
|
python2 -m compileall py2
|
|
|
|
python2 -O -m compileall py2
|
|
|
|
|
|
|
|
# Only some scripts does support python3 for now
|
|
|
|
python3:
|
|
|
|
rm -rf py3
|
|
|
|
mkdir -p py3
|
2018-03-05 23:32:19 +01:00
|
|
|
cp dnf-qubes-hooks.py py3/
|
2015-12-23 02:04:26 +01:00
|
|
|
python3 -m compileall py3
|
|
|
|
python3 -O -m compileall py3
|
|
|
|
|
2010-09-03 16:23:09 +02:00
|
|
|
clean:
|
2020-01-25 23:18:02 +01:00
|
|
|
rm -f *~ *.pyc *.pyo
|