Browse Source

- add Makefile.exmple; add default target (it targets to 'make all')

master
vanhofen 6 years ago
parent
commit
73f5f8fc65
  1. 16
      Makefile
  2. 5
      Makefile.example
  3. 5
      config.example

16
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 "*************"

5
Makefile.example

@ -0,0 +1,5 @@
#
# User's makefile
#
# -----------------------------------------------------------------------------

5
config.example

@ -1,4 +1,7 @@
# config.local
#
# Local config file
#
# -----------------------------------------------------------------------------
# Change it to your name.
#MAINTAINER = NI-Team

Loading…
Cancel
Save