mirror of
https://github.com/cc65/cc65.git
synced 2025-01-05 15:30:44 +00:00
adapted for zip/install targets
This commit is contained in:
parent
a5bff259bc
commit
37f9929094
@ -39,12 +39,13 @@ DRVTYPES = emd \
|
|||||||
tgi
|
tgi
|
||||||
|
|
||||||
OUTPUTDIRS := lib \
|
OUTPUTDIRS := lib \
|
||||||
target \
|
|
||||||
asminc \
|
asminc \
|
||||||
cfg \
|
cfg \
|
||||||
include \
|
include \
|
||||||
samples \
|
samples \
|
||||||
$(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))
|
$(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))\
|
||||||
|
$(subst ../,,$(wildcard ../target/*/drv/*))\
|
||||||
|
$(subst ../,,$(wildcard ../target/*/util))\
|
||||||
|
|
||||||
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
|
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
|
||||||
|
|
||||||
@ -80,8 +81,8 @@ mostlyclean:
|
|||||||
# Transitional line active. Final line commented out below in order to
|
# Transitional line active. Final line commented out below in order to
|
||||||
# allow some time for transition between the directory structures
|
# allow some time for transition between the directory structures
|
||||||
clean:
|
clean:
|
||||||
$(call RMDIR,../libwrk ../lib ../targetutil ../target $(addprefix ../,$(DRVTYPES)))
|
$(call RMDIR,../libwrk ../lib ../targetutil ../$(TARGETDIR) $(addprefix ../,$(DRVTYPES)))
|
||||||
# $(call RMDIR,../libwrk ../lib ../target)
|
# $(call RMDIR,../libwrk ../lib ../$(TARGETDIR))
|
||||||
|
|
||||||
ifdef CMD_EXE
|
ifdef CMD_EXE
|
||||||
|
|
||||||
@ -95,13 +96,14 @@ define INSTALL_recipe
|
|||||||
|
|
||||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||||
$(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
|
$(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
|
||||||
$(INSTALL) -m644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
|
$(INSTALL) -m0644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
|
||||||
|
|
||||||
endef # INSTALL_recipe
|
endef # INSTALL_recipe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(foreach dir,$(OUTPUTDIRS),$(INSTALL_recipe))
|
$(foreach dir,$(OUTPUTDIRS),$(INSTALL_recipe))
|
||||||
|
|
||||||
|
|
||||||
endif # CMD_EXE
|
endif # CMD_EXE
|
||||||
|
|
||||||
define ZIP_recipe
|
define ZIP_recipe
|
||||||
|
Loading…
Reference in New Issue
Block a user