Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
47c7d720
Commit
47c7d720
authored
10 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Some Makefile cleanups.
parent
9ad4ef8a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+5
-4
5 additions, 4 deletions
Makefile
lib/Makefile
+22
-16
22 additions, 16 deletions
lib/Makefile
lib/csharp/Makefile
+6
-0
6 additions, 0 deletions
lib/csharp/Makefile
lib/java/Makefile
+4
-0
4 additions, 0 deletions
lib/java/Makefile
lib/python/Makefile
+6
-0
6 additions, 0 deletions
lib/python/Makefile
with
43 additions
and
20 deletions
Makefile
+
5
−
4
View file @
47c7d720
...
...
@@ -2,29 +2,30 @@ SUBDIRS=compiler lib test examples
export
LABCOMM_JAR
=
$(
shell
pwd
)
/compiler/labcomm_compiler.jar
export
LABCOMM
=
java
-jar
$(
LABCOMM_JAR
)
.PHONY
:
all
all
:
$(SUBDIRS:%=make-%)
.PHONY
:
make-%
make-%
:
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
-e
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
.PHONY
:
test
test
:
$(SUBDIRS:%=test-%)
.PHONY
:
test-%
test-%
:
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
-e
test
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
test
.PHONY
:
clean
clean
:
$(SUBDIRS:%=clean-%)
.PHONY
:
clean-%
clean-%
:
$(
MAKE
)
-C
$*
-e
clean
$(
MAKE
)
-C
$*
clean
.PHONY
:
distclean
distclean
:
clean $(SUBDIRS:%=distclean-%)
.PHONY
:
distclean-%
distclean-%
:
$(
MAKE
)
-C
$*
-e
distclean
$(
MAKE
)
-C
$*
distclean
This diff is collapsed.
Click to expand it.
lib/Makefile
+
22
−
16
View file @
47c7d720
SUBDIRS
=
c csharp java python
.PHONY
:
all
all
:
cd
c
;
make
cd
csharp
;
make
cd
java
;
make
all
:
$(SUBDIRS:%=make-%)
.PHONY
:
make-%
make-%
:
$(
MAKE
)
-C
$*
.PHONY
:
test
test
:
$(
MAKE
)
-C
c
test
test
:
$(SUBDIRS:%=test-%)
.PHONY
:
test-%
test-%
:
$(
MAKE
)
-C
$*
test
.PHONY
:
clean
clean
:
$(
MAKE
)
-C
c clean
$(
MAKE
)
-C
csharp
clean
$(
MAKE
)
-C
java
clean
$(
MAKE
)
-C
python
clean
clean
:
$(SUBDIRS:%=clean-%)
.PHONY
:
clean
-%
clean
-%
:
$(
MAKE
)
-C
$*
clean
.PHONY
:
distclean
distclean
:
$(
MAKE
)
-C
c distclean
$(
MAKE
)
-C
csharp
distclean
$(
MAKE
)
-C
java
distclean
$(
MAKE
)
-C
python
distclean
distclean
:
clean $(SUBDIRS:%=distclean-%)
.PHONY
:
distclean
-%
distclean
-%
:
$(
MAKE
)
-C
$*
distclean
This diff is collapsed.
Click to expand it.
lib/csharp/Makefile
+
6
−
0
View file @
47c7d720
...
...
@@ -10,12 +10,18 @@ MODULES=Constant\
SampleHandler
\
SampleType
.PHONY
:
all
all
:
labcomm.dll
labcomm.dll
:
$(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
mcs
-out
:
$@
-target
:library
$(
filter %.cs,
$^
)
.PHONY
:
test
test
:
.PHONY
:
clean
clean
:
.PHONY
:
distclean
distclean
:
rm
-f
labcomm.dll
This diff is collapsed.
Click to expand it.
lib/java/Makefile
+
4
−
0
View file @
47c7d720
...
...
@@ -18,6 +18,7 @@ MODULES=Constant \
Writer
\
WriterWrapper
.PHONY
:
all
all
:
labcomm.jar labcomm2014.jar labcomm2006.jar
labcomm.jar
:
gen/JAVAC
...
...
@@ -45,6 +46,9 @@ gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) \
touch
$@
.PHONY
:
test
test
:
.PHONY
:
clean
clean
:
rm
-rf
gen
...
...
This diff is collapsed.
Click to expand it.
lib/python/Makefile
+
6
−
0
View file @
47c7d720
.PHONY
:
all
all
:
.PHONY
:
test
test
:
.PHONY
:
clean
clean
:
find
.
-name
'*.pyc'
-exec
rm
{}
\;
...
...
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