mirror of https://github.com/a2stuff/basys33.git
Only run xattr if present
This commit is contained in:
parent
e870f08184
commit
9abcfff68f
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in New Issue