Another small update to pkgbuild.
[PyMotherless.git] / Makefile
blob6f527ca00bb08d5a94c108447b0c6f5d2845ece9
1 #!/usr/bin/make -f
3 PREFIX?="/usr/local"
4 DESTDIR?="/"
5 CMAKE?="/usr/bin/cmake"
6 MAKE?="/usr/bin/make"
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
17 clean:
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
24 ${MAKE} clean
26 pythonthreeinst: pythonthree
27 if [ -d "./py3build/" ]; then cd "./py3build" && ${MAKE} DESTDIR=${DESTDIR} install; fi
28 ${MAKE} clean
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
36 pythontwo:
37 ${MAKE} clean
38 mkdir -p -v "./py2build" && cd "./py2build" && ${CMAKE} -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONTWO} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} .. && ${MAKE}
40 pythonthree:
41 ${MAKE} clean
42 mkdir -p -v "./py3build" && cd "./py3build" && ${CMAKE} -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONTHREE} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} .. && ${MAKE}
44 pythontwonoclean:
45 mkdir -p -v "./py2build" && cd "./py2build" && ${CMAKE} -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONTWO} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} .. && ${MAKE}
47 pythonthreenoclean:
48 mkdir -p -v "./py3build" && cd "./py3build" && ${CMAKE} -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONTHREE} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} .. && ${MAKE}