20 lines
342 B
Makefile
20 lines
342 B
Makefile
all: python
|
|
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
|
|
cp dnf-qubes-hooks.py py3/
|
|
python3 -m compileall py3
|
|
python3 -O -m compileall py3
|
|
|
|
clean:
|
|
rm -f *~ *.pyc *.pyo
|