When one is using gmake or anything other than make itself, the same
command should be used in the Makefiles too.
# Only copy toplevel documentation (important stuff)
mkdir i3-${VERSION}/docs
# Pre-generate documentation
- make -C docs
- make -C i3bar/doc
+ $(MAKE) -C docs
+ $(MAKE) -C i3bar/doc
# Cleanup τεχ output files
find docs -regex ".*\.\(aux\|out\|log\|toc\|bm\|dvi\|log\)" -exec rm '{}' \;
find docs -maxdepth 1 -type f ! \( -name "*.xcf" -or -name "*.svg" \) -exec cp '{}' i3-${VERSION}/docs \;
clean:
rm -f src/*.o
- make -C doc clean
+ $(MAKE) -C doc clean
distclean: clean
rm -f i3bar
- make -C doc distclean
+ $(MAKE) -C doc distclean
.PHONY: install clean distclean doc