Author Topic: cbp2make does not contain a Makefile.am?  (Read 20677 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6244
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
cbp2make does not contain a Makefile.am?
« on: September 27, 2026, 06:18:49 am »
Hi, when I looked at the

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks/PKGBUILD

I see such code snippet:

Code
  cp -R ${srcdir}/${_realname}_${pkgver}/src/tools/cbp2make/ "${srcdir}"/build-${MSYSTEM}/
  cd "${srcdir}"/build-${MSYSTEM}/cbp2make
  if check_option "debug" "n"; then
    make CC=${CC} CXX=${CXX} LD=${CXX} --jobs=1 -f cbp2make.cbp.mak.unix release
  else
    make CC=${CC} CXX=${CXX} LD=${CXX} --jobs=1 -f cbp2make.cbp.mak.unix debug
  fi

So, do we need to add a Makefile.am?

I see other tools in this folder:  src/tools, such as src/tools/cb_share_config and src/tools/CBLauncher, they all have a Makefile.am, but why cbp2make does not?

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 121

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6244
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cbp2make does not contain a Makefile.am?
« Reply #2 on: September 28, 2026, 01:07:17 am »
Try this:
https://github.com/stahta01/CodeBlocks_Unofficial_Testing/blob/master/src/tools/cbp2make/Makefile.am

Hi, thanks. I am not familiar with autotools, can any dev help to add them in the trunk. Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jetdosage

  • Single posting newcomer
  • *
  • Posts: 2
Re: cbp2make does not contain a Makefile.am?
« Reply #3 on: Today at 01:01:21 pm »
Hi, when I looked at the

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks/PKGBUILD 2048

I see such code snippet:

Code
  cp -R ${srcdir}/${_realname}_${pkgver}/src/tools/cbp2make/ "${srcdir}"/build-${MSYSTEM}/
  cd "${srcdir}"/build-${MSYSTEM}/cbp2make
  if check_option "debug" "n"; then
    make CC=${CC} CXX=${CXX} LD=${CXX} --jobs=1 -f cbp2make.cbp.mak.unix release
  else
    make CC=${CC} CXX=${CXX} LD=${CXX} --jobs=1 -f cbp2make.cbp.mak.unix debug
  fi

So, do we need to add a Makefile.am?

I see other tools in this folder:  src/tools, such as src/tools/cb_share_config and src/tools/CBLauncher, they all have a Makefile.am, but why cbp2make does not?

Thanks.
Good question! Adding a Makefile.am could improve consistency, but it depends on how cbp2make is built and maintained.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7842
Re: cbp2make does not contain a Makefile.am?
« Reply #4 on: Today at 03:46:51 pm »
I would prefer the adding of Makefile.am instead of my cbp2make.cbp.mak.unix hack I had added to MSys2 package.

Tim S.
C Programmer working to learn more about C++.
On Windows 11 64 bit using MSys2 UCRT64.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1937
Re: cbp2make does not contain a Makefile.am?
« Reply #5 on: Today at 05:43:42 pm »
Spam from @jetdosage reported to moderator.