Skip to content
Snippets Groups Projects
Commit e00055f1 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Generate both python2 and python3 versions

parent d747ca87
Branches python3
No related tags found
No related merge requests found
/hostinfo
/hostinfo2
/hostinfo3
*.bak
*.pyc
*~
TARGETS: hostinfo
TARGETS: hostinfo2 hostinfo3
all: $(TARGETS)
hostinfo: src/hostinfo.py $(sort $(wildcard src/hostinfo/*.py)) Makefile
(cd src ; apa -o ../$@ $(filter %.py, $(^:src/%=%)))
hostinfo2: src/hostinfo.py $(sort $(wildcard src/hostinfo/*.py)) Makefile
(cd src ; apa --interpreter=/usr/bin/python2 \
-o ../$@ $(filter %.py, $(^:src/%=%)))
hostinfo3: src/hostinfo.py $(sort $(wildcard src/hostinfo/*.py)) Makefile
(cd src ; apa --interpreter=/usr/bin/python3 \
-o ../$@ $(filter %.py, $(^:src/%=%)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment