mirror of
https://github.com/a2stuff/prodos-path.git
synced 2024-12-29 11:30:47 +00:00
Only run xattr if present try 3
This commit is contained in:
parent
a646cf6611
commit
fb08e649cc
6
Makefile
6
Makefile
@ -8,6 +8,8 @@ TARGETS = $(OUTDIR)/path.BIN \
|
||||
$(OUTDIR)/chtype.CMD $(OUTDIR)/chtime.CMD \
|
||||
$(OUTDIR)/bell.CMD $(OUTDIR)/hello.CMD $(OUTDIR)/echo.CMD $(OUTDIR)/online.CMD
|
||||
|
||||
XATTR := $(shell command -v xattr 2> /dev/null)
|
||||
|
||||
.PHONY: clean all package
|
||||
all: $(OUTDIR) $(TARGETS)
|
||||
|
||||
@ -29,7 +31,9 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
|
||||
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
|
||||
ld65 $(LDFLAGS) -o $@ $<
|
||||
if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi
|
||||
ifdef XATTR
|
||||
xattr -wx prodos.AuxType '00 20' $@
|
||||
endif
|
||||
|
||||
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
|
||||
ld65 $(LDFLAGS) -o $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user