forked from hgraca/explicit-architecture-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.custom.dist
executable file
·29 lines (23 loc) · 1.08 KB
/
Makefile.custom.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Makefile.custom
#
# This file contains the custom commands and/or aliases.
#
# To use it, copy/paste this file with the name Makefile.custom and add commands as you wish.
# This file is in .gitignore, so it will not be committed and is specific to you.
#
# Mute all `make` specific output. Comment this out to get some debug information.
.SILENT:
# make commands be run with `bash` instead of the default `sh`
SHELL='/bin/bash'
# .DEFAULT: If command does not exist in this makefile
# default: If no command was specified:
.DEFAULT default:
if [ "$@" != "" ]; then echo "Command '$@' not found."; fi;
$(MAKE) help # goes to the main Makefile
$(MAKE) -f Makefile.custom help # goes to this Makefile
if [ "$@" != "" ]; then exit 2; fi;
help:
@echo
@echo "Available custom commands:"
@grep '^[^#[:space:]].*:' Makefile.custom | grep -v '^help' | grep -v '^default' | grep -v '^\.' | grep -v '=' | grep -v '^_' | sed 's/://' | xargs -n 1 echo ' -'
########################################################################################################################