Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
6d640069
Commit
6d640069
authored
Nov 02, 2017
by
Florian Lugou
Browse files
changed build destination to build directory and added install target
parent
e558d831
Changes
13
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
6d640069
...
...
@@ -42,6 +42,9 @@ make release Prepare a new release for the website.
make
test
Run
tests
on
TTool.
make
publish_jar
Build
TTool
and
upload
the
resulting
archive.
!!!
Must
have
the
right
ssh
key
installed
for
this
!!!
make
install
Install
TTool,
the
jar
of
companion
software
and
the
runtime
dependencies
to
$$DESTDIR/bin.
By
default,
install
to
$(TTOOL_PATH)/bin.
make
clean
Clean
the
repository
from
compilation
artifacts.
make
ultraclean
Clean
the
repository
from
binaries
and
compilation
artifacts.
...
...
@@ -72,7 +75,7 @@ export TTOOL_SRC = $(TTOOL_PATH)/src/main/java
export
GLOBAL_JAVA
=
$(
shell
cd
$(TTOOL_SRC)
;
find
.
-name
"[^.]*.java"
)
export
TTOOL_RESOURCES
=
$(TTOOL_PATH)
/src/main/resources
export
TTOOL_WEBCRAWLER_SRC
=
$(TTOOL_PATH)
/src/main/java/web/crawler
export
TTOOL_B
IN
=
$(TTOOL_PATH)
/b
in
export
TTOOL_B
UILD
=
$(TTOOL_PATH)
/b
uild
export
TTOOL_LIBS
=
$(TTOOL_PATH)
/libs
export
TTOOL_LIBRARIES
=
$(
wildcard
$(TTOOL_LIBS)
/
*
.jar
)
export
TTOOL_CLASSPATH
=
$(
subst
$(eval)
,:,
$(TTOOL_LIBRARIES)
)
...
...
@@ -80,37 +83,37 @@ export TTOOL_CLASSPATH = $(subst $(eval) ,:,$(TTOOL_LIBRARIES))
export
GLOBAL_CFLAGS
=
-encoding
"UTF8"
-Xlint
:unchecked
-Xlint
:deprecation
-Xlint
:cast
-Xlint
:divzero
-Xlint
:empty
-Xlint
:finally
-Xlint
:fallthrough
export
TTOOL_DIR
=
$(TTOOL_PATH)
/ttool
export
TTOOL_BINARY
=
$(TTOOL_B
IN
)
/ttool.jar
export
TTOOL_BINARY
=
$(TTOOL_B
UILD
)
/ttool.jar
export
LAUNCHER_DIR
=
$(TTOOL_PATH)
/launcher
export
LAUNCHER_BINARY
=
$(TTOOL_B
IN
)
/launcher.jar
export
LAUNCHER_BINARY
=
$(TTOOL_B
UILD
)
/launcher.jar
export
GRAPHMINIMIZE_DIR
=
$(TTOOL_PATH)
/graphminimize
export
GRAPHMINIMIZE_BINARY
=
$(TTOOL_B
IN
)
/graphminimize.jar
export
GRAPHMINIMIZE_BINARY
=
$(TTOOL_B
UILD
)
/graphminimize.jar
export
GRAPHSHOW_DIR
=
$(TTOOL_PATH)
/graphshow
export
GRAPHSHOW_BINARY
=
$(TTOOL_B
IN
)
/graphshow.jar
export
GRAPHSHOW_BINARY
=
$(TTOOL_B
UILD
)
/graphshow.jar
export
TIFTRANSLATOR_DIR
=
$(TTOOL_PATH)
/tiftranslator
export
TIFTRANSLATOR_BINARY
=
$(TTOOL_B
IN
)
/tiftranslator.jar
export
TIFTRANSLATOR_BINARY
=
$(TTOOL_B
UILD
)
/tiftranslator.jar
export
TMLTRANSLATOR_DIR
=
$(TTOOL_PATH)
/tmltranslator
export
TMLTRANSLATOR_BINARY
=
$(TTOOL_B
IN
)
/tmltranslator.jar
export
TMLTRANSLATOR_BINARY
=
$(TTOOL_B
UILD
)
/tmltranslator.jar
export
RUNDSE_DIR
=
$(TTOOL_PATH)
/rundse
export
RUNDSE_BINARY
=
$(TTOOL_B
IN
)
/rundse.jar
export
RUNDSE_BINARY
=
$(TTOOL_B
UILD
)
/rundse.jar
export
REMOTESIMULATOR_DIR
=
$(TTOOL_PATH)
/simulationcontrol
export
REMOTESIMULATOR_BINARY
=
$(TTOOL_B
IN
)
/simulationcontrol.jar
export
REMOTESIMULATOR_BINARY
=
$(TTOOL_B
UILD
)
/simulationcontrol.jar
export
WEBCRAWLER_CLIENT_DIR
=
$(TTOOL_PATH)
/webcrawler/client
export
WEBCRAWLER_CLIENT_BINARY
=
$(TTOOL_B
IN
)
/webcrawler-client.jar
export
WEBCRAWLER_CLIENT_BINARY
=
$(TTOOL_B
UILD
)
/webcrawler-client.jar
export
WEBCRAWLER_SERVER_DIR
=
$(TTOOL_PATH)
/webcrawler/server
export
WEBCRAWLER_SERVER_BINARY
=
$(TTOOL_B
IN
)
/webcrawler-server.jar
export
WEBCRAWLER_SERVER_BINARY
=
$(TTOOL_B
UILD
)
/webcrawler-server.jar
export
JTTOOL_DIR
=
$(TTOOL_PATH)
/jttool
export
JTTOOL_BINARY
=
$(TTOOL_B
IN
)
/jttool.jar
export
JTTOOL_BINARY
=
$(TTOOL_B
UILD
)
/jttool.jar
all
:
ttool launcher graphminimize graphshow tiftranslator tmltranslator rundse remotesimulator webcrawler
...
...
@@ -213,7 +216,7 @@ BUILDER = $(TTOOL_PATH)/builder.jar
BUILD_INFO
=
build.txt
BUILD_TO_MODIFY
=
$(TTOOL_SRC)
/ui/util/DefaultText.java
TTOOL_LOTOS_H
=
$(
patsubst
$(TTOOL_DIR)
/runtime/%,
$(TTOOL_B
IN
)
/%,
$(
wildcard
$(TTOOL_DIR)
/runtime/spec
*
))
TTOOL_LOTOS_H
=
$(
patsubst
$(TTOOL_DIR)
/runtime/%,
$(TTOOL_B
UILD
)
/%,
$(
wildcard
$(TTOOL_DIR)
/runtime/spec
*
))
RELEASE_STD_FILES_XML
=
$(
patsubst
%,
$(TTOOL_MODELING)
/%,
\
TURTLE/manual-HW.xml
\
...
...
@@ -420,7 +423,7 @@ $(BASERELEASE:.tgz=.tar): $(JTTOOL_BINARY) $(TTOOL_BINARY) $(LAUNCHER_BINARY) $(
# Basic bin
@mkdir
-p
$(TTOOL_TARGET)/bin
@cp
$(TTOOL_DOC)/README_bin
$(TTOOL_TARGET)/bin
@cp
$(TTOOL_B
IN
)/*.jar
$(TTOOL_TARGET)/bin
@cp
$(TTOOL_B
UILD
)/*.jar
$(TTOOL_TARGET)/bin
@mkdir
-p
$(TTOOL_STD_RELEASE)
@$(TAR)
cf
$(BASERELEASE)
-C
$(TTOOL_TARGET_RELEASE)
.
...
...
@@ -441,6 +444,15 @@ git:
git commit
-m
'update on build version:
$(BUILD_INFO)
'
$(BUILD_INFO)
$(BUILD_TO_MODIFY)
git push
# ========================================
# ========== INSTALL ==========
# ========================================
DESTDIR
?=
$(TTOOL_PATH)
install
:
ttool launcher graphminimize graphshow tiftranslator tmltranslator rundse remotesimulator webcrawler
@
cp
$(TTOOL_BUILD)
/
*
$(DESTDIR)
/bin
# ========================================
# ========== TESTS ==========
# ========================================
...
...
@@ -469,6 +481,6 @@ clean:
@
rm
-f
$(TTOOL_STD_RELEASE)
/
*
.tar
ultraclean
:
clean
@
rm
-rf
$(TTOOL_B
IN
)
@
rm
-rf
$(TTOOL_B
UILD
)
@
rm
-rf
$(TTOOL_DOC_HTML)
@
rm
-rf
$(TTOOL_STD_RELEASE)
build.gradle
View file @
6d640069
...
...
@@ -35,17 +35,17 @@ subprojects {
}
test
.
workingDir
"${rootProject.absPath}/oldTest_DoNotUse/util/fr.tpt.ttool.tests.util"
libsDirName
=
"${rootProject.absPath}/b
in
"
libsDirName
=
"${rootProject.absPath}/b
uild
"
task
copyRuntimeLibs
(
type:
Copy
)
{
from
configurations
.
runtime
from
'runtime'
into
"${rootProject.absPath}/b
in
"
into
"${rootProject.absPath}/b
uild
"
}
build
.
finalizedBy
(
copyRuntimeLibs
)
clean
.
doFirst
{
delete
"${rootProject.absPath}/b
in
"
delete
"${rootProject.absPath}/b
uild
"
}
}
...
...
graphminimize/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)GRAPHMINIMIZE$(RESET)]
MANIFEST
=
$(GRAPHMINIMIZE_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(GRAPHMINIMIZE_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(GRAPHMINIMIZE_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(GRAPHMINIMIZE_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
graphshow/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)GRAPHSHOW$(RESET)]
MANIFEST
=
$(GRAPHSHOW_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(GRAPHSHOW_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(GRAPHSHOW_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(GRAPHSHOW_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
jttool/Makefile
View file @
6d640069
...
...
@@ -14,7 +14,7 @@ JARRSRCFLAGS = uf
$(JTTOOL_BINARY)
:
compile
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
...
...
launcher/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)LAUNCHER$(RESET)]
MANIFEST
=
$(LAUNCHER_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(LAUNCHER_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(LAUNCHER_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(LAUNCHER_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
rundse/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)RUNDSE$(RESET)]
MANIFEST
=
$(RUNDSE_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(RUNDSE_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(RUNDSE_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(RUNDSE_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
simulationcontrol/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)REMOTESIMULATOR$(RESET)]
MANIFEST
=
$(REMOTESIMULATOR_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(REMOTESIMULATOR_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(REMOTESIMULATOR_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(REMOTESIMULATOR_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
tiftranslator/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)TIFTRANSLATOR$(RESET)]
MANIFEST
=
$(TIFTRANSLATOR_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(TIFTRANSLATOR_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(TIFTRANSLATOR_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(TIFTRANSLATOR_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
tmltranslator/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)TMLTRANSLATOR$(RESET)]
MANIFEST
=
$(TMLTRANSLATOR_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(TMLTRANSLATOR_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(TMLTRANSLATOR_DIR)
/build/classes/main
...
...
@@ -18,14 +18,14 @@ JARRSRCFLAGS = uf
$(TMLTRANSLATOR_BINARY)
:
compile $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
ttool/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)TTOOL$(RESET)]
MANIFEST
=
$(TTOOL_DIR)
/META-INF/MANIFEST.MF
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(TTOOL_DIR)
/src/main/java
LOCAL_RESOURCES_DIR
=
$(TTOOL_RESOURCES)
...
...
@@ -11,7 +11,7 @@ LOCAL_RUNTIME_DIR = $(TTOOL_DIR)/runtime
LOCAL_JAVA
=
$(
shell
cd
$(LOCAL_SRC_DIR)
;
find
.
-name
"*.java"
)
LOCAL_CLASS
=
$(
patsubst
%.java,%.class,
$(LOCAL_JAVA)
)
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
IN
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
UILD
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
CFLAGS
=
$(GLOBAL_CFLAGS)
-sourcepath
$(TTOOL_SRC)
:
$(LOCAL_SRC_DIR)
-classpath
$(TTOOL_CLASSPATH)
-d
$(LOCAL_BUILD_DIR)
JARFLAGS
=
cmf
...
...
@@ -21,16 +21,16 @@ JARRSRCFLAGS = uf
$(TTOOL_BINARY)
:
compile $(LOCAL_RT_DEP) $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
2>/dev/null
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
$(TTOOL_B
IN
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
-r
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
webcrawler/client/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)WEBCRAWLER-CLIENT$(RESET)]
MANIFEST
=
$(WEBCRAWLER_CLIENT_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(WEBCRAWLER_CLIENT_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(WEBCRAWLER_CLIENT_DIR)
/build/classes/main
...
...
@@ -10,7 +10,7 @@ LOCAL_RUNTIME_DIR = $(WEBCRAWLER_CLIENT_DIR)/runtime
LOCAL_JAVA
=
$(
shell
cd
$(LOCAL_SRC_DIR)
;
find
.
-name
"*.java"
)
LOCAL_CLASS
=
$(
patsubst
%.java,%.class,
$(LOCAL_JAVA)
)
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
IN
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
UILD
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
CFLAGS
=
$(GLOBAL_CFLAGS)
-sourcepath
$(TTOOL_SRC)
:
$(LOCAL_SRC_DIR)
-classpath
$(TTOOL_CLASSPATH)
-d
$(LOCAL_BUILD_DIR)
JARFLAGS
=
cmf
...
...
@@ -20,14 +20,14 @@ JARRSRCFLAGS = uf
$(WEBCRAWLER_CLIENT_BINARY)
:
compile $(LOCAL_RT_DEP) $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
@@ -35,8 +35,8 @@ compile: $(patsubst %,$(LOCAL_SRC_DIR)/%,$(LOCAL_JAVA)) $(patsubst %,$(TTOOL_SRC
@
mkdir
-p
$(LOCAL_BUILD_DIR)
@
$(JAVAC)
$(CFLAGS)
$(
patsubst
%,
$(LOCAL_SRC_DIR)
/%,
$(LOCAL_JAVA)
)
$(TTOOL_B
IN
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
-r
$<
$@
clean
:
...
...
webcrawler/server/Makefile
View file @
6d640069
...
...
@@ -2,7 +2,7 @@ PREFIX = [$(COLOR)WEBCRAWLER-SERVER$(RESET)]
MANIFEST
=
$(WEBCRAWLER_SERVER_DIR)
/manifest.txt
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
IN
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
DEPEND
=
$(
patsubst
%,
$(TTOOL_B
UILD
)
/%,
$(
shell
cat
$(MANIFEST)
|
grep
Class-Path |
cut
-d
:
-f2
))
LOCAL_SRC_DIR
=
$(WEBCRAWLER_SERVER_DIR)
/src/main/java
LOCAL_BUILD_DIR
=
$(WEBCRAWLER_SERVER_DIR)
/build/classes/main
...
...
@@ -10,7 +10,7 @@ LOCAL_RUNTIME_DIR = $(WEBCRAWLER_SERVER_DIR)/runtime
LOCAL_JAVA
=
$(
shell
cd
$(LOCAL_SRC_DIR)
;
find
.
-name
"*.java"
)
LOCAL_CLASS
=
$(
patsubst
%.java,%.class,
$(LOCAL_JAVA)
)
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
IN
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
LOCAL_RT_DEP
=
$(
patsubst
$(LOCAL_RUNTIME_DIR)
/%,
$(TTOOL_B
UILD
)
/%,
$(
wildcard
$(LOCAL_RUNTIME_DIR)
/
*
))
CFLAGS
=
$(GLOBAL_CFLAGS)
-sourcepath
$(TTOOL_SRC)
:
$(LOCAL_SRC_DIR)
-classpath
$(TTOOL_CLASSPATH)
-d
$(LOCAL_BUILD_DIR)
JARFLAGS
=
cmf
...
...
@@ -20,14 +20,14 @@ JARRSRCFLAGS = uf
$(WEBCRAWLER_SERVER_BINARY)
:
compile $(LOCAL_RT_DEP) $(DEPEND)
@
echo
"
$(PREFIX)
Archiving"
@
mkdir
-p
$(TTOOL_B
IN
)
@
mkdir
-p
$(TTOOL_B
UILD
)
@
$(JAR)
$(JARFLAGS)
$(MANIFEST)
$@
-C
$(LOCAL_BUILD_DIR)
.
ifneq
($(strip $(LOCAL_RESOURCES_DIR)),)
@
$(JAR)
$(JARRSRCFLAGS)
$@
-C
$(LOCAL_RESOURCES_DIR)
.
endif
$(TTOOL_B
IN
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%.jar
:
$(TTOOL_LIBS)/%.jar
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
$<
$@
compile
:
$(patsubst %
,
$(LOCAL_SRC_DIR)/%
,
$(LOCAL_JAVA)) $(patsubst %
,
$(TTOOL_SRC)/%
,
$(GLOBAL_JAVA))
...
...
@@ -35,8 +35,8 @@ compile: $(patsubst %,$(LOCAL_SRC_DIR)/%,$(LOCAL_JAVA)) $(patsubst %,$(TTOOL_SRC
@
mkdir
-p
$(LOCAL_BUILD_DIR)
@
$(JAVAC)
$(CFLAGS)
$(
patsubst
%,
$(LOCAL_SRC_DIR)
/%,
$(LOCAL_JAVA)
)
$(TTOOL_B
IN
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
IN
)
$(TTOOL_B
UILD
)/%
:
$(LOCAL_RUNTIME_DIR)/%
@
mkdir
-p
$(TTOOL_B
UILD
)
@
cp
-r
$<
$@
clean
:
...
...
Write
Preview
Markdown
is supported
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