5 CMAKE?
="/usr/bin/cmake"
7 PYTHONTWO?
="/usr/bin/python2"
8 PYTHONTHREE?
="/usr/bin/python3"
9 .PHONY
: all install installnoclean
clean pythontwoinst pythonthreeinst pythontwoinstnoclean pythonthreeinstnoclean pythontwo pythonthree pythontwonoclean pythonthreenoclean
11 all: clean pythontwonoclean pythonthreenoclean
13 install: pythontwoinst pythonthreeinst
15 installnoclean
: pythontwoinstnoclean pythonthreeinstnoclean
18 if
[ -d
"./py2build/" ]; then cd
"./py2build" && make
clean; fi
19 if
[ -d
"./py3build/" ]; then cd
"./py3build" && make
clean; fi
20 rm -rfv
"./build/" "./dist/" "./deb_dist/" "./PyUPC_EAN.egg-info/" "./py2build/" "./py3build"
22 pythontwoinst
: pythontwo
23 if
[ -d
"./py2build/" ]; then cd
"./py2build" && ${MAKE} DESTDIR
=${DESTDIR} install; fi
26 pythonthreeinst
: pythonthree
27 if
[ -d
"./py3build/" ]; then cd
"./py3build" && ${MAKE} DESTDIR
=${DESTDIR} install; fi
30 pythontwoinstnoclean
: pythontwonoclean
31 if
[ -d
"./py2build/" ]; then cd
"./py2build" && ${MAKE} DESTDIR
=${DESTDIR} install; fi
33 pythonthreeinstnoclean
: pythonthreenoclean
34 if
[ -d
"./py3build/" ]; then cd
"./py3build" && ${MAKE} DESTDIR
=${DESTDIR} install; fi
38 mkdir
-p
-v
"./py2build" && cd
"./py2build" && ${CMAKE} -DPYTHON_EXECUTABLE
:FILEPATH
=${PYTHONTWO} -DCMAKE_INSTALL_PREFIX
:PATH
=${PREFIX} ..
&& ${MAKE}
42 mkdir
-p
-v
"./py3build" && cd
"./py3build" && ${CMAKE} -DPYTHON_EXECUTABLE
:FILEPATH
=${PYTHONTHREE} -DCMAKE_INSTALL_PREFIX
:PATH
=${PREFIX} ..
&& ${MAKE}
45 mkdir
-p
-v
"./py2build" && cd
"./py2build" && ${CMAKE} -DPYTHON_EXECUTABLE
:FILEPATH
=${PYTHONTWO} -DCMAKE_INSTALL_PREFIX
:PATH
=${PREFIX} ..
&& ${MAKE}
48 mkdir
-p
-v
"./py3build" && cd
"./py3build" && ${CMAKE} -DPYTHON_EXECUTABLE
:FILEPATH
=${PYTHONTHREE} -DCMAKE_INSTALL_PREFIX
:PATH
=${PREFIX} ..
&& ${MAKE}