Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
a5abb0eb
Commit
a5abb0eb
authored
Aug 11, 2012
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Clean up CORE build system mode makefile.
parent
f1a2bca6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
LUFA/Build/lufa_core.mk
+22
-14
22 additions, 14 deletions
LUFA/Build/lufa_core.mk
with
22 additions
and
14 deletions
LUFA/Build/lufa_core.mk
+
22
−
14
View file @
a5abb0eb
...
...
@@ -53,6 +53,10 @@ LUFA_BUILD_PROVIDED_MACROS +=
SHELL
=
/bin/sh
# Converts a given input to a printable output using "(None)" if no items are in the list
CONVERT_TO_PRINTABLE
=
$(
if
$(
strip
$(
1
))
,
$(
1
)
,
(
None
)
)
# Build sorted and filtered lists of the included build module data
SORTED_LUFA_BUILD_MODULES
=
$(
sort
$(
LUFA_BUILD_MODULES
))
SORTED_LUFA_BUILD_TARGETS
=
$(
sort
$(
LUFA_BUILD_TARGETS
))
...
...
@@ -62,12 +66,12 @@ SORTED_LUFA_PROVIDED_VARS = $(sort $(LUFA_BUILD_PROVIDED_VARS))
SORTED_LUFA_PROVIDED_MACROS
=
$(
sort
$(
LUFA_BUILD_PROVIDED_MACROS
))
# Create printable versions of the sorted build module data (use "(None)" when no data is available)
PRINTABLE_LUFA_BUILD_MODULES
=
$(
if
$(
strip
$(
SORTED_LUFA_BUILD_MODULES
))
,
$(
SORTED_LUFA_BUILD_MODULES
)
,
(
None
)
)
PRINTABLE_LUFA_BUILD_TARGETS
=
$(
if
$(
strip
$(
SORTED_LUFA_BUILD_TARGETS
))
,
$(
SORTED_LUFA_BUILD_TARGETS
)
,
(
None
)
)
PRINTABLE_LUFA_MANDATORY_VARS
=
$(
if
$(
strip
$(
SORTED_LUFA_MANDATORY_VARS
))
,
$(
SORTED_LUFA_MANDATORY_VARS
)
,
(
None
)
)
PRINTABLE_LUFA_OPTIONAL_VARS
=
$(
if
$(
strip
$(
SORTED_LUFA_OPTIONAL_VARS
))
,
$(
SORTED_LUFA_OPTIONAL_VARS
)
,
(
None
)
)
PRINTABLE_LUFA_PROVIDED_VARS
=
$(
if
$(
strip
$(
SORTED_LUFA_PROVIDED_VARS
))
,
$(
SORTED_LUFA_PROVIDED_VARS
)
,
(
None
)
)
PRINTABLE_LUFA_PROVIDED_MACROS
=
$(
if
$(
strip
$(
SORTED_LUFA_PROVIDED_MACROS
))
,
$(
SORTED_LUFA_PROVIDED_MACROS
)
,
(
None
)
)
PRINTABLE_LUFA_BUILD_MODULES
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_BUILD_MODULES
))
PRINTABLE_LUFA_BUILD_TARGETS
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_BUILD_TARGETS
))
PRINTABLE_LUFA_MANDATORY_VARS
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_MANDATORY_VARS
))
PRINTABLE_LUFA_OPTIONAL_VARS
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_OPTIONAL_VARS
))
PRINTABLE_LUFA_PROVIDED_VARS
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_PROVIDED_VARS
))
PRINTABLE_LUFA_PROVIDED_MACROS
=
$(
call CONVERT_TO_PRINTABLE
,
$(
SORTED_LUFA_PROVIDED_MACROS
))
help
:
@
echo
"==================================================================="
...
...
@@ -91,6 +95,10 @@ help:
@
echo
" well as the actual invoked command. To suppress the output of the "
@
echo
" invoked commands and show only the friendly command output, run "
@
echo
" make with the
\"
-s
\"
switch added before the target(s). "
@
echo
" "
@
echo
"SEE ALSO: "
@
echo
" For more information, see the 'Build System' chapter of the LUFA "
@
echo
" project documentation. "
@
echo
"==================================================================="
@
echo
" "
@
echo
" Currently used build system modules in this application: "
...
...
@@ -123,7 +131,7 @@ help:
@
printf
" %b"
"
$(
PRINTABLE_LUFA_PROVIDED_MACROS:%= - %
\n
)
"
@
echo
" "
@
echo
"==================================================================="
@
echo
" The LUFA BuildSystem 2.0 - Powered By
Unicorns
(tm)
"
@
echo
" The LUFA BuildSystem 2.0 - Powered By
Duct Tape
(tm) "
@
echo
"==================================================================="
list_modules
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment