franta-hg@36: # Rozšířené atributy – program na správu rozšířených atributů souborů franta-hg@36: # Copyright © 2023 František Kučera (Frantovo.cz) franta-hg@36: # franta-hg@36: # This program is free software: you can redistribute it and/or modify franta-hg@36: # it under the terms of the GNU General Public License as published by franta-hg@36: # the Free Software Foundation, version 3 of the License. franta-hg@36: # franta-hg@36: # This program is distributed in the hope that it will be useful, franta-hg@36: # but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@36: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@36: # GNU General Public License for more details. franta-hg@36: # franta-hg@36: # You should have received a copy of the GNU General Public License franta-hg@36: # along with this program. If not, see . franta-hg@36: franta-hg@39: SRC=$(shell find src -name '*.java') franta-hg@39: MAIN=cz.frantovo.rozsireneatributy.Startér franta-hg@39: LAF=-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel franta-hg@44: VERSION=0.2-SNAPSHOT franta-hg@39: JAR=target/rozsirene-atributy-$(VERSION).jar franta-hg@39: franta-hg@39: all: $(JAR) franta-hg@36: franta-hg@36: .PHONY: all clean run run-binfmt franta-hg@36: franta-hg@36: clean: franta-hg@39: rm -rf target franta-hg@36: franta-hg@39: target/classes: $(SRC) franta-hg@39: mkdir -p target/classes franta-hg@39: touch target/classes franta-hg@39: javac -d target/classes $(SRC) franta-hg@39: cp \ franta-hg@39: src/main/resources/cz/frantovo/rozsireneatributy/*.properties \ franta-hg@39: target/classes/cz/frantovo/rozsireneatributy/ franta-hg@36: franta-hg@39: $(JAR): target/classes franta-hg@39: jar --create --file $(@) --main-class $(MAIN) -C target/classes . franta-hg@36: chmod +x $(@) franta-hg@36: franta-hg@36: run: $(JAR) franta-hg@36: java $(LAF) -jar $(<) --soubor $(<) franta-hg@36: franta-hg@36: run-binfmt: $(JAR) franta-hg@36: $(<) --soubor $(<)