Skip to content

Commit

Permalink
Use --no-builtin-rules instead of .SUFFIXES, and use grep -E instead …
Browse files Browse the repository at this point in the history
…of egrep
  • Loading branch information
shakiyam committed Oct 22, 2024
1 parent a2342f4 commit 1498d54
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := help
.SUFFIXES:

ALL_TARGETS := $(shell egrep -o ^[0-9A-Za-z_-]+: $(MAKEFILE_LIST) | sed 's/://')

ALL_TARGETS := $(shell grep -E -o ^[0-9A-Za-z_-]+: $(MAKEFILE_LIST) | sed 's/://')
.PHONY: $(ALL_TARGETS)
.DEFAULT_GOAL := help

all: check_for_updates lint build install ## Check for updates, lint, build, and install

Expand Down

0 comments on commit 1498d54

Please sign in to comment.