From 73ac9cbfc0a6a4bc43e2713986607d1cd3306eb5 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 7 Mar 2021 16:05:31 -0800 Subject: [PATCH] Only run xattr if present --- Makefile | 2 +- cricket/Makefile | 2 +- dclock/Makefile | 2 +- ns.clock/Makefile | 2 +- quit/Makefile | 2 +- ram.drv/Makefile | 2 +- selectors/Makefile | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index bceed09..4059d76 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -targets := ns.clock cricket dclock bbb selector ram.drv quit +targets := ns.clock cricket dclock selectors ram.drv quit .PHONY: all $(targets) diff --git a/cricket/Makefile b/cricket/Makefile index 775b35d..fb1682b 100644 --- a/cricket/Makefile +++ b/cricket/Makefile @@ -36,4 +36,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi diff --git a/dclock/Makefile b/dclock/Makefile index 814cf7c..9e1d279 100644 --- a/dclock/Makefile +++ b/dclock/Makefile @@ -31,4 +31,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi diff --git a/ns.clock/Makefile b/ns.clock/Makefile index 89f632c..9c754f6 100644 --- a/ns.clock/Makefile +++ b/ns.clock/Makefile @@ -31,4 +31,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi diff --git a/quit/Makefile b/quit/Makefile index 91764ab..081f47f 100644 --- a/quit/Makefile +++ b/quit/Makefile @@ -31,4 +31,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi diff --git a/ram.drv/Makefile b/ram.drv/Makefile index 29808b3..2eb3b48 100644 --- a/ram.drv/Makefile +++ b/ram.drv/Makefile @@ -31,4 +31,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi diff --git a/selectors/Makefile b/selectors/Makefile index 85127ba..0bdad96 100644 --- a/selectors/Makefile +++ b/selectors/Makefile @@ -34,4 +34,4 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi