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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Klarén
LabComm
Commits
47c7d720
Commit
47c7d720
authored
Feb 20, 2015
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Some Makefile cleanups.
parent
9ad4ef8a
No related branches found
No related tags found
No related merge requests found
Changes
5
Show 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
...
@@ -2,29 +2,30 @@ SUBDIRS=compiler lib test examples
export
LABCOMM_JAR
=
$(
shell
pwd
)
/compiler/labcomm_compiler.jar
export
LABCOMM_JAR
=
$(
shell
pwd
)
/compiler/labcomm_compiler.jar
export
LABCOMM
=
java
-jar
$(
LABCOMM_JAR
)
export
LABCOMM
=
java
-jar
$(
LABCOMM_JAR
)
.PHONY
:
all
all
:
$(SUBDIRS:%=make-%)
all
:
$(SUBDIRS:%=make-%)
.PHONY
:
make-%
.PHONY
:
make-%
make-%
:
make-%
:
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
-e
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
.PHONY
:
test
.PHONY
:
test
test
:
$(SUBDIRS:%=test-%)
test
:
$(SUBDIRS:%=test-%)
.PHONY
:
test-%
.PHONY
:
test-%
test-%
:
test-%
:
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
-e
test
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(
MAKE
)
-C
$*
test
.PHONY
:
clean
.PHONY
:
clean
clean
:
$(SUBDIRS:%=clean-%)
clean
:
$(SUBDIRS:%=clean-%)
.PHONY
:
clean-%
.PHONY
:
clean-%
clean-%
:
clean-%
:
$(
MAKE
)
-C
$*
-e
clean
$(
MAKE
)
-C
$*
clean
.PHONY
:
distclean
.PHONY
:
distclean
distclean
:
clean $(SUBDIRS:%=distclean-%)
distclean
:
clean $(SUBDIRS:%=distclean-%)
.PHONY
:
distclean-%
.PHONY
:
distclean-%
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
.PHONY
:
all
all
:
all
:
$(SUBDIRS:%=make-%)
cd
c
;
make
cd
csharp
;
make
.PHONY
:
make-%
cd
java
;
make
make-%
:
$(
MAKE
)
-C
$*
.PHONY
:
test
.PHONY
:
test
test
:
test
:
$(SUBDIRS:%=test-%)
$(
MAKE
)
-C
c
test
.PHONY
:
test-%
test-%
:
$(
MAKE
)
-C
$*
test
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean
:
$(SUBDIRS:%=clean-%)
$(
MAKE
)
-C
c clean
$(
MAKE
)
-C
csharp
clean
.PHONY
:
clean
-%
$(
MAKE
)
-C
java
clean
clean
-%
:
$(
MAKE
)
-C
python
clean
$(
MAKE
)
-C
$*
clean
.PHONY
:
distclean
.PHONY
:
distclean
distclean
:
distclean
:
clean $(SUBDIRS:%=distclean-%)
$(
MAKE
)
-C
c distclean
$(
MAKE
)
-C
csharp
distclean
.PHONY
:
distclean
-%
$(
MAKE
)
-C
java
distclean
distclean
-%
:
$(
MAKE
)
-C
python
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\
...
@@ -10,12 +10,18 @@ MODULES=Constant\
SampleHandler
\
SampleHandler
\
SampleType
SampleType
.PHONY
:
all
all
:
labcomm.dll
all
:
labcomm.dll
labcomm.dll
:
$(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
labcomm.dll
:
$(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
mcs
-out
:
$@
-target
:library
$(
filter %.cs,
$^
)
mcs
-out
:
$@
-target
:library
$(
filter %.cs,
$^
)
.PHONY
:
test
test
:
.PHONY
:
clean
clean
:
clean
:
.PHONY
:
distclean
distclean
:
distclean
:
rm
-f
labcomm.dll
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 \
...
@@ -18,6 +18,7 @@ MODULES=Constant \
Writer
\
Writer
\
WriterWrapper
WriterWrapper
.PHONY
:
all
all
:
labcomm.jar labcomm2014.jar labcomm2006.jar
all
:
labcomm.jar labcomm2014.jar labcomm2006.jar
labcomm.jar
:
gen/JAVAC
labcomm.jar
:
gen/JAVAC
...
@@ -45,6 +46,9 @@ gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) \
...
@@ -45,6 +46,9 @@ gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) \
touch
$@
touch
$@
.PHONY
:
test
test
:
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean
:
rm
-rf
gen
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
.PHONY
:
clean
clean
:
clean
:
find
.
-name
'*.pyc'
-exec
rm
{}
\;
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