From 73f5f8fc6508d8c67d950dbdf5854d8a53d2751a Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 5 Nov 2018 23:14:22 +0100 Subject: [PATCH] - add Makefile.exmple; add default target (it targets to 'make all') --- Makefile | 16 +++++++++------- Makefile.example | 5 +++++ config.example | 5 ++++- 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 Makefile.example diff --git a/Makefile b/Makefile index f0d5294a..e3165a8f 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,7 @@ -#master makefile +# +# Master makefile +# +# ----------------------------------------------------------------------------- UID := $(shell id -u) ifeq ($(UID), 0) @@ -7,10 +10,13 @@ warn: @echo "Refusing to build. Good bye." else +# first target is default ... +default: all + # workaround unset variables at first start local-files: $(eval BOXMODEL = nevis) @test -e config.local || cp config.example config.local - @touch Makefile.local + @test -e Makefile.local || cp Makefile.example Makefile.local @mkdir -p local/{root,scripts} -include config.local @@ -20,11 +26,6 @@ include make/environment-target.mk include make/environment-update.mk -include internal/internal.mk -############################################################################ -# A print out of environment variables -# -# maybe a help about all supported targets would be nice here, too... -# printenv: @echo '============================================================================== ' @echo "Build Environment Varibles:" @@ -82,6 +83,7 @@ help: @echo " but doesn't touch your local stuff" done: +# ----------------------------------------------------------------------------- @echo "*************" @echo -e "*** $(TERM_GREEN)Done!$(TERM_NORMAL) ***" @echo "*************" diff --git a/Makefile.example b/Makefile.example new file mode 100644 index 00000000..fe82c4ae --- /dev/null +++ b/Makefile.example @@ -0,0 +1,5 @@ +# +# User's makefile +# +# ----------------------------------------------------------------------------- + diff --git a/config.example b/config.example index ca9c431b..49adbe91 100644 --- a/config.example +++ b/config.example @@ -1,4 +1,7 @@ -# config.local +# +# Local config file +# +# ----------------------------------------------------------------------------- # Change it to your name. #MAINTAINER = NI-Team