Compare commits

...

2 commits

Author SHA1 Message Date
bca7c6f3fc
paste for lectures 2024-10-24 14:02:25 +02:00
c0af4bd52e
only use in lectures 2024-10-24 14:02:18 +02:00
2 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,4 @@
ifeq (, $(shell which xclip 2>/dev/null)) PASTE = xclip -o
PASTE = powershell.exe Get-Clipboard
else
PASTE = xclip -o
endif
CAT = bat -pp CAT = bat -pp
FILE ?= test FILE ?= test

View file

@ -2,11 +2,12 @@ RM = rm -rf
TAR = tar -czf TAR = tar -czf
CP = cp -r CP = cp -r
MKDIR = mkdir -p MKDIR = mkdir -p
PASTE = xclip -o
SRC_DIR = src SRC_DIR = src
BIN_DIR = bin BIN_DIR = bin
ENTRY = App ENTRY := App
ARCHIVE_NAME = nom ARCHIVE_NAME = nom
ARCHIVE_EXT = tar.gz ARCHIVE_EXT = tar.gz
@ -18,6 +19,10 @@ run:
compilation: compilation:
find $(SRC_DIR) -name "*.java" -print | xargs javac -d $(BIN_DIR) find $(SRC_DIR) -name "*.java" -print | xargs javac -d $(BIN_DIR)
paste:
mkdir -p $(SRC_DIR)
$(PASTE) > $(SRC_DIR)/Main.java
all: all:
run run