Makefile: keep cmake-build as default target (#2579)

Fixes https://github.com/awesomeWM/awesome/issues/2576.
This commit is contained in:
Daniel Hahler 2019-01-12 11:46:23 +01:00 committed by GitHub
parent d2fd15cf99
commit c20573e6dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -247,9 +247,6 @@ script:
git checkout "$commit"
git --no-pager show --stat
# Remove/clean any existing build dir.
sudo make distclean
if ! make all check CMAKE_ARGS+="-D DO_COVERAGE=0"; then
failed="$failed $commit"
fi

View file

@ -7,7 +7,12 @@ endif
BUILDDIR=build
all: awesome ;
# Run "make" in $(BUILDDIR) by default.
# This is required to generate all files already, which should not be generated
# with "(sudo) make install" only later.
cmake-build: $(BUILDDIR)/Makefile
$(ECHO) "Building…"
$(MAKE) -C $(BUILDDIR)
$(BUILDDIR)/Makefile:
$(ECHO) "Creating build directory and running cmake in it. You can also run CMake directly, if you want."