mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 23:30:03 +00:00
Patch by Greg King: Improved the mkdir rule. Adjusted some rules for grc65 and
geos-*.cfg name changes. git-svn-id: svn://svn.cc65.org/cc65/trunk@5391 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
fb3c3f6a68
commit
8f5f3f56cb
18
make/gcc.mak
18
make/gcc.mak
@ -101,7 +101,7 @@ uninstall: install-test
|
|||||||
|
|
||||||
install: install-test install-dirs install-bins install-libs install-docs
|
install: install-test install-dirs install-bins install-libs install-docs
|
||||||
@echo
|
@echo
|
||||||
@echo 'If you install files into non-default directories, then'
|
@echo 'If you installed the files into non-default directories, then'
|
||||||
@echo 'you might need to export some shell environment variables:'
|
@echo 'you might need to export some shell environment variables:'
|
||||||
@echo
|
@echo
|
||||||
@echo 'CC65_HOME=$(CC65_HOME)'
|
@echo 'CC65_HOME=$(CC65_HOME)'
|
||||||
@ -112,6 +112,11 @@ install: install-test install-dirs install-bins install-libs install-docs
|
|||||||
@echo 'LD65_LIB=$(LD65_LIB)'
|
@echo 'LD65_LIB=$(LD65_LIB)'
|
||||||
@echo 'LD65_OBJ=$(LD65_OBJ)'
|
@echo 'LD65_OBJ=$(LD65_OBJ)'
|
||||||
@echo
|
@echo
|
||||||
|
@if [ -x $(bindir)/grc${EXT} ]; then \
|
||||||
|
echo 'grc was renamed to grc65; but, a grc command is in your binaries directory.' \
|
||||||
|
echo "If that command is an old copy of CC65's program," \
|
||||||
|
echo 'then you should use a "${MAKE} erase-grc" command to remove it.' \
|
||||||
|
fi
|
||||||
|
|
||||||
.PHONY: install-test
|
.PHONY: install-test
|
||||||
install-test:
|
install-test:
|
||||||
@ -137,7 +142,7 @@ $(bindir) $(datadir) $(docdir) $(libdir) \
|
|||||||
$(CC65_DOC) $(CC65_HOME) \
|
$(CC65_DOC) $(CC65_HOME) \
|
||||||
$(CA65_INC) $(CC65_INC) \
|
$(CA65_INC) $(CC65_INC) \
|
||||||
$(LD65_CFG) $(LD65_LIB) $(LD65_OBJ):
|
$(LD65_CFG) $(LD65_LIB) $(LD65_OBJ):
|
||||||
$(MKDIR) $@
|
$(MKDIR) -p $@ || $(MKDIR) $@
|
||||||
|
|
||||||
$(CC65_HOME)/% $(CC65_INC)/% $(CC65_DOC)/%:
|
$(CC65_HOME)/% $(CC65_INC)/% $(CC65_DOC)/%:
|
||||||
$(MKDIR) $@
|
$(MKDIR) $@
|
||||||
@ -166,14 +171,14 @@ install-libs:
|
|||||||
for f in libsrc/*-*.o; \
|
for f in libsrc/*-*.o; \
|
||||||
do $(INSTALL_DATA) $$f $(LD65_OBJ) || exit $$?; \
|
do $(INSTALL_DATA) $$f $(LD65_OBJ) || exit $$?; \
|
||||||
done
|
done
|
||||||
|
for f in src/ld65/cfg/[!g]*-*.cfg; \
|
||||||
|
do $(INSTALL_DATA) $$f $(LD65_CFG) || exit $$?; \
|
||||||
|
done
|
||||||
for d in emd joy mou ser tgi; \
|
for d in emd joy mou ser tgi; \
|
||||||
do for f in libsrc/*.$$d; \
|
do for f in libsrc/*.$$d; \
|
||||||
do $(INSTALL_DATA) $$f $(CC65_HOME)/$$d || exit $$?; \
|
do $(INSTALL_DATA) $$f $(CC65_HOME)/$$d || exit $$?; \
|
||||||
done || exit $$?; \
|
done || exit $$?; \
|
||||||
done
|
done
|
||||||
for f in src/ld65/cfg/*-*.cfg; \
|
|
||||||
do $(INSTALL_DATA) $$f $(LD65_CFG) || exit $$?; \
|
|
||||||
done
|
|
||||||
|
|
||||||
install-docs:
|
install-docs:
|
||||||
for f in src/ca65/macpack/*.mac; \
|
for f in src/ca65/macpack/*.mac; \
|
||||||
@ -197,3 +202,6 @@ install-samps: ${addprefix $(CC65_DOC)/, $(shell find samples -type d)}
|
|||||||
fi; \
|
fi; \
|
||||||
done || exit $$?; \
|
done || exit $$?; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
erase-grc:
|
||||||
|
$(RM) $(bindir)/grc${EXT}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user