Meta: Update Makefile, makem.sh
This commit is contained in:
parent
6004ab98da
commit
b1d9fcf274
2 changed files with 116 additions and 88 deletions
19
Makefile
19
Makefile
|
|
@ -2,14 +2,27 @@
|
|||
|
||||
# For consistency, we use only var=val options, not hyphen-prefixed options.
|
||||
|
||||
ifdef autoinstall
|
||||
AUTOINSTALL = "--auto-install"
|
||||
# NOTE: I don't like duplicating the arguments here and in makem.sh,
|
||||
# but I haven't been able to find a way to pass arguments which
|
||||
# conflict with Make's own arguments through Make to the script.
|
||||
# Using -- doesn't seem to do it.
|
||||
|
||||
ifdef auto-install
|
||||
AUTO_INSTALL = "--auto-install"
|
||||
endif
|
||||
|
||||
ifdef sandbox
|
||||
SANDBOX = "--sandbox"
|
||||
endif
|
||||
|
||||
ifdef sandbox-dir
|
||||
SANDBOX_DIR = "--sandbox-dir" "$(sandbox-dir)"
|
||||
endif
|
||||
|
||||
ifdef debug
|
||||
DEBUG = "--debug"
|
||||
endif
|
||||
|
||||
# ** Verbosity
|
||||
|
||||
# Since the "-v" in "make -v" gets intercepted by Make itself, we have
|
||||
|
|
@ -29,4 +42,4 @@ endif
|
|||
# directory by that name exists, which can confuse Make.
|
||||
|
||||
%:
|
||||
@./makem.sh $(VERBOSE) $(SANDBOX) $(AUTOINSTALL) $(@)
|
||||
@./makem.sh $(DEBUG) $(VERBOSE) $(SANDBOX) $(SANDBOX_DIR) $(AUTO_INSTALL) $(@)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue