author | František Kučera <franta-hg@frantovo.cz> |
Sat, 16 Dec 2023 19:09:35 +0100 | |
branch | v_0 |
changeset 38 | 41e91ea94acb |
parent 36 | a7de67e6578c |
permissions | -rw-r--r-- |
franta-hg@36 | 1 |
# Rozšířené atributy – program na správu rozšířených atributů souborů |
franta-hg@36 | 2 |
# Copyright © 2023 František Kučera (Frantovo.cz) |
franta-hg@36 | 3 |
# |
franta-hg@36 | 4 |
# This program is free software: you can redistribute it and/or modify |
franta-hg@36 | 5 |
# it under the terms of the GNU General Public License as published by |
franta-hg@36 | 6 |
# the Free Software Foundation, version 3 of the License. |
franta-hg@36 | 7 |
# |
franta-hg@36 | 8 |
# This program is distributed in the hope that it will be useful, |
franta-hg@36 | 9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@36 | 10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@36 | 11 |
# GNU General Public License for more details. |
franta-hg@36 | 12 |
# |
franta-hg@36 | 13 |
# You should have received a copy of the GNU General Public License |
franta-hg@36 | 14 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@36 | 15 |
|
franta-hg@36 | 16 |
all: dist/rozsirene-atributy.jar |
franta-hg@36 | 17 |
|
franta-hg@36 | 18 |
.PHONY: all clean run run-binfmt |
franta-hg@36 | 19 |
|
franta-hg@36 | 20 |
clean: |
franta-hg@36 | 21 |
rm -rf build |
franta-hg@36 | 22 |
rm -rf dist |
franta-hg@36 | 23 |
|
franta-hg@36 | 24 |
SRC=$(shell find -name '*.java') |
franta-hg@36 | 25 |
MAIN=cz.frantovo.rozsireneatributy.Startér |
franta-hg@36 | 26 |
LAF=-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel |
franta-hg@36 | 27 |
JAR=dist/rozsirene-atributy.jar |
franta-hg@36 | 28 |
|
franta-hg@36 | 29 |
build: $(SRC) |
franta-hg@36 | 30 |
mkdir -p build |
franta-hg@36 | 31 |
touch build |
franta-hg@36 | 32 |
javac -d build $(SRC) |
franta-hg@36 | 33 |
cp \ |
franta-hg@36 | 34 |
src/cz/frantovo/rozsireneatributy/*.properties \ |
franta-hg@36 | 35 |
build/cz/frantovo/rozsireneatributy/ |
franta-hg@36 | 36 |
|
franta-hg@36 | 37 |
$(JAR): build |
franta-hg@36 | 38 |
mkdir -p dist |
franta-hg@36 | 39 |
jar --create --file $(@) --main-class $(MAIN) -C build . |
franta-hg@36 | 40 |
chmod +x $(@) |
franta-hg@36 | 41 |
|
franta-hg@36 | 42 |
run: $(JAR) |
franta-hg@36 | 43 |
java $(LAF) -jar $(<) --soubor $(<) |
franta-hg@36 | 44 |
|
franta-hg@36 | 45 |
run-binfmt: $(JAR) |
franta-hg@36 | 46 |
$(<) --soubor $(<) |