How to build just one tool from sources

"R. Diez via samba" <[email protected]> Mon, 23 Feb 2026 11:54:38 +0100
Newsgroups gmane.network.samba.general
Message-ID <[email protected]>
Hi all:

I need a newer version of tool smbcacls because of its new options '--save savefile' and '--recurse'.

So I downloaded the sources (samba-4.23.4.tar.gz) and built Samba like this:

./configure --prefix="$HOME/somewhere/samba-4.23.4-bin"
make
make install

The trouble is, building takes a long time.

The "make" phase does not seem to build everything, because "make install" builds other things too, so I had to specify -j to "make install" or it would take even longer. That in itself makes me wonder whether the build system is properly written. But this is another matter.

Is there a way to build just the smbcacls tool? I know some Samba libraries smbcacls depends on will have to be built too, but hopefully not everything in Samba, like other tools or the server parts.

I tried this based on an old answer I found on the Internet:

make bin/smbcacls

But I got this error:

PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf --targets=9 bin/smbcacls
No function 'bin/smbcacls' defined in /home/rdiez/somewhere/samba-4.23.4/wscript
make: *** [Makefile:131: 9 bin/smbcacls] Error 1

Thanks in advance,
   rdiez

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba