Only run xattr if present try 3

This commit is contained in:
Joshua Bell 2021-03-07 16:35:52 -08:00
parent 73ac9cbfc0
commit 5c71155dc3
6 changed files with 30 additions and 6 deletions

View File

@ -20,6 +20,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -36,4 +38,6 @@ $(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

View File

@ -15,6 +15,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -31,4 +33,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(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

View File

@ -15,6 +15,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -31,4 +33,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(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

View File

@ -15,6 +15,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -31,4 +33,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(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

View File

@ -15,6 +15,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -31,4 +33,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(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

View File

@ -18,6 +18,8 @@ DD = $(shell date "+%-d")
YY = $(shell date "+%-y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
XATTR := $(shell command -v xattr 2> /dev/null)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
@ -34,4 +36,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS)
$(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