Commit e00055f1 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Generate both python2 and python3 versions

parent d747ca87
/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/%=%)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment