summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser/Makefile29
-rw-r--r--parser/Parser.java5
-rw-r--r--parser/config.mk28
3 files changed, 62 insertions, 0 deletions
diff --git a/parser/Makefile b/parser/Makefile
new file mode 100644
index 0000000..94cd847
--- /dev/null
+++ b/parser/Makefile
@@ -0,0 +1,29 @@
+# Copyright (C) 2022-2023 Alessandro Iezzi <aiezzi AT alessandroiezzi PERIOD it>
+#
+# This file is part of desiderio.
+#
+# desiderio is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# desiderio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with desiderio. If not, see <https://www.gnu.org/licenses/>.
+
+include config.mk
+
+all: ${DEPS} ${OBJ}
+
+clean:
+ rm -f ${OBJ}
+
+.java.class:
+ ${CC} $<
+
+${FREEMARKER}:
+ wget ${FREEMARKER_URL} \ No newline at end of file
diff --git a/parser/Parser.java b/parser/Parser.java
new file mode 100644
index 0000000..0d83e22
--- /dev/null
+++ b/parser/Parser.java
@@ -0,0 +1,5 @@
+public class Parser {
+ public static void main(String[] args) {
+ System.out.println("Hello, World from Java!");
+ }
+}
diff --git a/parser/config.mk b/parser/config.mk
new file mode 100644
index 0000000..512ed46
--- /dev/null
+++ b/parser/config.mk
@@ -0,0 +1,28 @@
+# Copyright (C) 2022-2023 Alessandro Iezzi <aiezzi AT alessandroiezzi PERIOD it>
+#
+# This file is part of desiderio.
+#
+# desiderio is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# desiderio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with desiderio. If not, see <https://www.gnu.org/licenses/>.
+
+.SUFFIXES: .java .class
+
+CC = javac
+SRC != find * -name '*.java'
+OBJ = ${SRC:java=class}
+
+FREEMARKER_VER = 2.3.32
+FREEMARKER = apache-freemarker-${FREEMARKER_VER}-bin.tar.gz
+FREEMARKER_URL = https://dlcdn.apache.org/freemarker/engine/${FREEMARKER_VER}/binaries/${FREEMARKER}
+
+DEPS = ${FREEMARKER} \ No newline at end of file