Only run xattr if present

This commit is contained in:
Joshua Bell 2021-03-07 15:59:03 -08:00
parent f1caa15b0c
commit e6943cb0b2
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
ld65 $(LDFLAGS) -o $@ $<
xattr -wx prodos.AuxType '00 20' $@
command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
ld65 $(LDFLAGS) -o $@ $<