diff --git a/.gitignore b/.gitignore
index eca333fc319ef181718f08bf1e743ed041a7d071..93ef9e4b7b10d6705afc8ba36c717ef91057257b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
 /hostinfo
+/hostinfo2
+/hostinfo3
 *.bak
 *.pyc
 *~
diff --git a/Makefile b/Makefile
index 75df8ef383c02cea1610e7e2724d09da7d8b87cf..c79034f3e0a58d2a474126ad3d0f7fc501d6f066 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
-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/%=%)))