Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
processer
Commits
e1d391d2
Commit
e1d391d2
authored
Oct 25, 2018
by
Anders Blomdell
Browse files
Add cleanup rule
parent
2e57987c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e1d391d2
...
...
@@ -14,6 +14,12 @@ all:
@
echo
>
&2
@
exit
1
%.CLEAN
:
for
d
in
$$
(
./tools/find_linux_targets
$*
)
\
$$
(
./tools/find_avr_targets
$*
)
;
do
\
make
-C
$
${d}
$@
;
\
done
%.LOAD
:
make
-C
$$
(
./tools/find_avr_targets
$*
)
$@
...
...
@@ -22,3 +28,4 @@ all:
%.LINUX
:
make
-C
$$
(
./tools/find_linux_targets
$*
)
$@
lib/avr/Makefile.common
View file @
e1d391d2
...
...
@@ -16,6 +16,9 @@ ifeq ($(TARGET),)
all
:
$(TARGETS:%=%.LINK)
%.CLEAN
:
rm
-rf
compiled/
$*
%.LINK
:
@
mkdir
-p
compiled/
$*
make
--no-print-directory
TARGET
=
$*
$*
.LINK
...
...
pcio/linux/Makefile
View file @
e1d391d2
...
...
@@ -9,6 +9,10 @@ all: pciotest.LINUX
%.LINUX
:
compiled/% | compiled
@
/bin/true
.PHONY
:
%.CLEAN
%.CLEAN
:
clean
@
/bin/true
.PRECIOUS
:
compiled/%
compiled/%
:
%.c | compiled
echo
$*
...
...
tools/find_avr_targets
View file @
e1d391d2
...
...
@@ -16,7 +16,9 @@ all_avr_programs() {
}
target_dir
()
{
dirname
$(
egrep
-l
"
$1
.CHIP="
${
ROOTDIR
}
/
*
/avr/Makefile
)
local
MAKEFILE
MAKEFILE
=
$(
egrep
-l
"
$1
.CHIP="
${
ROOTDIR
}
/
*
/avr/Makefile
)
[
-n
${
MAKEFILE
}
]
&&
dirname
${
MAKEFILE
}
}
if
[
$#
-eq
0
]
;
then
...
...
tools/find_linux_targets
View file @
e1d391d2
...
...
@@ -17,7 +17,9 @@ all_linux_programs() {
}
target_dir
()
{
dirname
$(
egrep
-l
"^CFLAGS.
$1
="
${
ROOTDIR
}
/
*
/linux/Makefile
)
local
MAKEFILE
MAKEFILE
=
$(
egrep
-l
"^CFLAGS.
$1
="
${
ROOTDIR
}
/
*
/linux/Makefile
)
[
-n
${
MAKEFILE
}
]
&&
dirname
${
MAKEFILE
}
}
if
[
$#
-eq
0
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment