From 9abcfff68f32b442e4d06cd82567de18227486d7 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 7 Mar 2021 16:38:49 -0800 Subject: [PATCH] Only run xattr if present --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index da530a2..f3843ae 100644 --- a/Makefile +++ b/Makefile @@ -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