diff options
author | 2023-01-26 15:35:30 +0100 | |
---|---|---|
committer | 2023-01-26 15:35:30 +0100 | |
commit | 08493d67d24b61f1a55ab9b0ed7dd6de28dc7825 (patch) | |
tree | de7dc13e847ff34ecde7584ba676386b0626c2b7 | |
parent | 583c2339cb8cb6e2c5a1825d26189e0086722fe9 (diff) | |
download | desiderio-master.tar.gz desiderio-master.zip |
-rw-r--r-- | parser/Makefile | 29 | ||||
-rw-r--r-- | parser/Parser.java | 5 | ||||
-rw-r--r-- | parser/config.mk | 28 |
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 |