Skip to content

Commit

Permalink
Makefile: keep cmake-build as default target (awesomeWM#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Jan 12, 2019
1 parent d2fd15c commit c20573e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit c20573e

Please sign in to comment.