-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Akkadius/eqemu-maps
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
tools/map_edit/map_edit.log | ||
tools/map_edit/imgui.ini | ||
|
||
.idea | ||
|
||
maps.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#---------------------- | ||
# Parse makefile arguments | ||
#---------------------- | ||
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
$(eval $(RUN_ARGS):;@:) | ||
|
||
#---------------------- | ||
# Silence GNU Make | ||
#---------------------- | ||
ifndef VERBOSE | ||
MAKEFLAGS += --no-print-directory | ||
endif | ||
|
||
#---------------------- | ||
# Terminal | ||
#---------------------- | ||
|
||
GREEN := $(shell tput -Txterm setaf 2) | ||
WHITE := $(shell tput -Txterm setaf 7) | ||
YELLOW := $(shell tput -Txterm setaf 3) | ||
RESET := $(shell tput -Txterm sgr0) | ||
|
||
#------------------------------------------------------------------ | ||
# - Add the following 'help' target to your Makefile | ||
# - Add help text after each target name starting with '\#\#' | ||
# - A category can be added with @category | ||
#------------------------------------------------------------------ | ||
|
||
.PHONY: build test | ||
|
||
HELP_FUN = \ | ||
%help; \ | ||
while(<>) { \ | ||
push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^([a-zA-Z\-]+)\s*:.*\#\#(?:@([a-zA-Z\-]+))?\s(.*)$$/ }; \ | ||
print "\n"; \ | ||
for (sort keys %help) { \ | ||
print "${WHITE}$$_${RESET \ | ||
}\n"; \ | ||
for (@{$$help{$$_}}) { \ | ||
$$sep = " " x (32 - length $$_->[0]); \ | ||
print " ${YELLOW}$$_->[0]${RESET}$$sep${GREEN}$$_->[1]${RESET}\n"; \ | ||
}; \ | ||
print ""; \ | ||
} | ||
|
||
help: ##@other Show this help. | ||
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST) | ||
|
||
package: ##@dev Package maps.zip by removing the .git folder | ||
zip -r maps.zip . -x .git/\* -x .gitignore -x Makefile -x changelog.txt -x .idea/\* -x license.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "eqemu-maps", | ||
"version": "1.0.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Akkadius/eqemu-maps.git" | ||
} | ||
} |