Only run xattr if present

This commit is contained in:
Joshua Bell 2021-03-07 16:38:49 -08:00
parent e870f08184
commit 9abcfff68f
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ HEADERS = $(wildcard *.inc)
TARGETS = \
$(OUTDIR)/basis.system.SYS
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -25,4 +27,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(OUTDIR)/%.SYS: $(OUTDIR)/%.o
ld65 $(LDFLAGS) -o $@ $<
ifdef XATTR
xattr -wx prodos.AuxType '00 20' $@
endif