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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6240
  • 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: 6240
  • 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.