Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
7ba4679a
Commit
7ba4679a
authored
May 14, 2013
by
Anders Blomdell
Browse files
Makefile cleanup
parent
031d8eff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7ba4679a
SUBDIRS
=
compiler lib examples
test
export
LABCOMM_JAR
=
$(
shell
pwd
)
/compiler/labComm.jar
export
LABCOMM
=
java
-jar
$(LABCOMM_JAR)
all
:
compiler
$(MAKE)
-C
lib
$(MAKE)
-C
lib/c run-test
all
:
$(SUBDIRS:%=make-%)
.PHONY
:
compiler
compiler
:
.PHONY
:
make-
compiler
make-
compiler
:
cd
compiler
;
ant jar
.PHONY
:
make-%
make-%
:
$(MAKE)
-C
$*
-e
.PHONY
:
test
test
:
$(MAKE)
-C
test
-e
test
:
$(SUBDIRS:%=test-%)
.PHONY
:
test-compiler
test-compiler
:
.PHONY
:
test-%
test-%
:
$(MAKE)
-C
$*
-e
test
.PHONY
:
clean
clean
:
$(SUBDIRS:%=clean-%)
.PHONY
:
clean-compiler
clean-compiler
:
cd
compiler
;
ant clean
.PHONY
:
clean-%
clean-%
:
$(MAKE)
-C
$*
-e
clean
examples/Makefile
0 → 100644
View file @
7ba4679a
all
:
echo
To be
done
...
test
:
echo
To be
done
...
clean
:
echo
To be
done
...
lib/Makefile
View file @
7ba4679a
...
...
@@ -3,6 +3,9 @@ all:
cd
csharp
;
make
cd
java
;
make
test
:
$(MAKE)
-C
c
-e
run-test
clean
:
cd
c
;
make clean
cd
csharp
;
make clean
...
...
lib/csharp/Makefile
View file @
7ba4679a
...
...
@@ -16,4 +16,4 @@ labcomm.dll: $(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
mcs
-out
:
$@
-target
:library
$(
filter
%.cs,
$^
)
clean
:
rm
labcomm.dll
rm
-f
labcomm.dll
test/Makefile
View file @
7ba4679a
...
...
@@ -2,7 +2,9 @@ TESTS=basic simple nested
LABCOMM_JAR
=
../compiler/labComm.jar
LABCOMM
=
java
-jar
$(LABCOMM_JAR)
all
:
$(TESTS:%=test_%)
all
:
test
:
$(TESTS:%=test_%)
# PYTHONPATH=../lib/python \
# ./test_encoder_decoder.py --labcomm="$(LABCOMM)" basic.lc
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment