1 # Rozšířené atributy – program na správu rozšířených atributů souborů
2 # Copyright © 2023 František Kučera (Frantovo.cz)
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, version 3 of the License.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 SRC=$(shell find src -name '*.java')
17 MAIN=cz.frantovo.rozsireneatributy.Startér
18 LAF=-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
20 JAR=target/rozsirene-atributy-$(VERSION).jar
24 .PHONY: all clean run run-binfmt
29 target/classes: $(SRC)
30 mkdir -p target/classes
32 javac -d target/classes $(SRC)
34 src/main/resources/cz/frantovo/rozsireneatributy/*.properties \
35 target/classes/cz/frantovo/rozsireneatributy/
37 $(JAR): target/classes
38 jar --create --file $(@) --main-class $(MAIN) -C target/classes .
42 java $(LAF) -jar $(<) --soubor $(<)