Skip to content

Commit

Permalink
Fix py2cbf and pycbf install logic in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
yayahjb committed Jul 15, 2022
1 parent d6f06bc commit 5232590
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 57 deletions.
23 changes: 15 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -642,7 +642,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -1757,10 +1757,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -1828,10 +1828,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2743,8 +2743,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
23 changes: 15 additions & 8 deletions Makefile_LINUX
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -642,7 +642,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -1753,10 +1753,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -1824,10 +1824,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2739,8 +2739,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
26 changes: 17 additions & 9 deletions Makefile_MINGW
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -642,7 +642,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -676,7 +676,8 @@ PY2CBFBOPT = --compiler=mingw32
PY3CBFEXT = pyd
PY3CBFBOPT = --compiler=mingw32
SETUP_PY = setup_MINGW.py
INSTALLSETUP_PY = installsetup_MINGW.py
PY2INSTALLSETUP_PY = py2setup_MINGW.py
PY3INSTALLSETUP_PY = py3setup_MINGW.py
JDKDIR = /java
JSWIG = /swig/swig -java
PYSWIG = /swig/swig -python
Expand Down Expand Up @@ -1766,10 +1767,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -1837,10 +1838,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2752,8 +2753,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
23 changes: 15 additions & 8 deletions Makefile_MSYS2
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -641,7 +641,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -1752,10 +1752,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -1823,10 +1823,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2738,8 +2738,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
23 changes: 15 additions & 8 deletions Makefile_OSX
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -642,7 +642,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -1751,10 +1751,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -1822,10 +1822,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2737,8 +2737,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
26 changes: 17 additions & 9 deletions m4/Makefile.m4
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ PY2CBFEXT = so
PY2CBFBOPT =
PY2CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY2INSTALLSETUP_PY = py2setup.py

#
# PY3CBF definitions
Expand All @@ -648,7 +648,7 @@ PY3CBFEXT = so
PY3CBFBOPT =
PY3CBFIOPT =
SETUP_PY = setup.py
INSTALLSETUP_PY = installsetup.py
PY3INSTALLSETUP_PY = py3setup.py


#
Expand Down Expand Up @@ -911,7 +911,8 @@ PY2CBFBOPT = --compiler=mingw32
PY3CBFEXT = pyd
PY3CBFBOPT = --compiler=mingw32
SETUP_PY = setup_MINGW.py
INSTALLSETUP_PY = installsetup_MINGW.py
PY2INSTALLSETUP_PY = py2setup_MINGW.py
PY3INSTALLSETUP_PY = py3setup_MINGW.py
JDKDIR = /java
JSWIG = /swig/swig -java
PYSWIG = /swig/swig -python
Expand Down Expand Up @@ -2115,10 +2116,10 @@ $(PY2CBF)/_py2cbf.$(PY2CBFEXT): $(PY2CBF) shared \
(cd $(PY2CBF); $(PYTHON2) py2setup.py build $(PY2CBFBOPT); cp build/lib*/_py2cbf*.$(PY2CBFEXT) .)

$(PY2CBF)/py2cbfinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY2CBF)/py2cbfuserinstall: $(PY2CBF)/pycbf.py
(cd $(PY2CBF); $(PYTHON2) $(INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)
(cd $(PY2CBF); $(PYTHON2) $(PY2INSTALLSETUP_PY) install $(PY2CBFIOPT) --user)

$(PY2CBF)/py2setup.py: $(PY2CBF)/py2setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -2186,10 +2187,10 @@ $(PY3CBF)/_pycbf.$(PY3CBFEXT): $(PY3CBF) shared \
(cd $(PY3CBF); $(PYTHON3) py3setup.py build $(PY3CBFBOPT); cp build/lib*/_pycbf*.$(PY3CBFEXT) .)

$(PY3CBF)/py3cbfinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --prefix=$(CBF_PREFIX))

$(PY3CBF)/py3cbfuserinstall: $(PY3CBF)/pycbf.py
(cd $(PY3CBF); $(PYTHON3) $(INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)
(cd $(PY3CBF); $(PYTHON3) $(PY3INSTALLSETUP_PY) install $(PY3CBFIOPT) --user)

$(PY3CBF)/py3setup.py: $(PY3CBF)/py3setup_py.m4
(m4 -P -Dregexlib=$(REGEX_LIB) -Dregexlib2=$(REGEX_LIB2) \
Expand Down Expand Up @@ -3101,8 +3102,15 @@ empty:
@-rm -f $(PY2CBF)/newtest1.cbf
@-rm -f $(PY2CBF)/fel_test1.out
@-rm -f $(PY2CBF)/fel_test2.out
@-rm -f $(PY2CBF)/setup.py
@-rm -f $(PY2CBF)/setup_MINGW.py
@-rm -f $(PY2CBF)/py2setup.py
@-rm -f $(PY2CBF)/py2setup_MINGW.py
@-rm -f $(PY3CBF)/_pycbf.$(PY3CBFEXT)
@-rm -rf $(PY3CBF)/build/*
@-rm -f $(PY3CBF)/newtest1.cbf
@-rm -f $(PY3CBF)/fel_test1.out
@-rm -f $(PY3CBF)/fel_test2.out
@-rm -f $(PY3CBF)/py3setup.py
@-rm -f $(PY3CBF)/py3setup_MINGW.py
@-rm -f makecbf.cbf
@-rm -f img2cif_packed.cif
@-rm -f img2cif_canonical.cif
Expand Down
Loading

0 comments on commit 5232590

Please sign in to comment.