Adjusted to the cc65 Makefile style.
The cc65 Makefiles have a single .PHONY target. It serves as an overview of the "interesting" goals supported by the Makfile.
This commit is contained in:
parent
6fca6897cd
commit
d78b44f8c6
1 changed files with 3 additions and 7 deletions
|
@ -69,6 +69,8 @@ LDFLAGS_tgidemo_atari = -D __RESERVED_MEMORY__=0x2000
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Generic rules
|
# Generic rules
|
||||||
|
|
||||||
|
.PHONY: all mostlyclean clean install zip samples d64 zap
|
||||||
|
|
||||||
%: %.c
|
%: %.c
|
||||||
%: %.s
|
%: %.s
|
||||||
|
|
||||||
|
@ -108,7 +110,6 @@ EXELIST = ascii \
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Rules to make the binaries
|
# Rules to make the binaries
|
||||||
|
|
||||||
.PHONY: all samples
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
samples: $(EXELIST)
|
samples: $(EXELIST)
|
||||||
|
@ -127,7 +128,6 @@ ovrldemo: overlaydemo.o
|
||||||
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
||||||
# with the VICE emulator.
|
# with the VICE emulator.
|
||||||
|
|
||||||
.PHONY: d64
|
|
||||||
d64: samples.d64
|
d64: samples.d64
|
||||||
|
|
||||||
samples.d64: samples
|
samples.d64: samples
|
||||||
|
@ -144,7 +144,7 @@ samples.d64: samples
|
||||||
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
samplesdir = $(prefix)/share/cc65
|
samplesdir = $(prefix)/share/cc65
|
||||||
.PHONY: install
|
|
||||||
install:
|
install:
|
||||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)
|
$(INSTALL) -d $(DESTDIR)$(samplesdir)
|
||||||
|
@ -159,21 +159,17 @@ install:
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Packaging rules
|
# Packaging rules
|
||||||
|
|
||||||
.PHONY: zip
|
|
||||||
zip:
|
zip:
|
||||||
@cd .. && zip -r cc65 samples/
|
@cd .. && zip -r cc65 samples/
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Clean-up rules
|
# Clean-up rules
|
||||||
|
|
||||||
.PHONY: mostlyclean
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.map *.o *.s *.lbl
|
$(RM) *.map *.o *.s *.lbl
|
||||||
|
|
||||||
.PHONY: zap
|
|
||||||
zap: clean
|
zap: clean
|
||||||
$(RM) $(EXELIST) samples.d64
|
$(RM) $(EXELIST) samples.d64
|
||||||
$(RM) multdemo.? ovrldemo.?
|
$(RM) multdemo.? ovrldemo.?
|
||||||
|
|
Loading…
Add table
Reference in a new issue