mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 00:32:08 +00:00
Create zip file.
This commit is contained in:
parent
2adfd3f49f
commit
80ca7eb4e4
@ -3,8 +3,9 @@ language:
|
|||||||
install:
|
install:
|
||||||
- sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686
|
- sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686
|
||||||
script:
|
script:
|
||||||
- make all doc
|
- make
|
||||||
- make -C src clean all CROSS_COMPILE=i686-w64-mingw32-
|
- make -C src clean all CROSS_COMPILE=i686-w64-mingw32-
|
||||||
|
- make doc zip
|
||||||
after_success:
|
after_success:
|
||||||
- make -C doc gh-pages
|
- make -C doc gh-pages
|
||||||
env:
|
env:
|
||||||
|
4
Makefile
4
Makefile
@ -1,8 +1,8 @@
|
|||||||
.PHONY: all mostlyclean clean install avail unavail bin lib doc
|
.PHONY: all mostlyclean clean install zip avail unavail bin lib doc
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
all mostlyclean clean install:
|
all mostlyclean clean install zip:
|
||||||
@$(MAKE) -C src --no-print-directory $@
|
@$(MAKE) -C src --no-print-directory $@
|
||||||
@$(MAKE) -C libsrc --no-print-directory $@
|
@$(MAKE) -C libsrc --no-print-directory $@
|
||||||
@$(MAKE) -C doc --no-print-directory $@
|
@$(MAKE) -C doc --no-print-directory $@
|
||||||
|
@ -2,7 +2,7 @@ ifneq ($(shell echo),)
|
|||||||
CMD_EXE = 1
|
CMD_EXE = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all mostlyclean clean install doc html info gh-pages
|
.PHONY: all mostlyclean clean install zip doc html info gh-pages
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ all mostlyclean install:
|
|||||||
|
|
||||||
ifdef CMD_EXE
|
ifdef CMD_EXE
|
||||||
|
|
||||||
clean doc:
|
clean zip doc:
|
||||||
|
|
||||||
else # CMD_EXE
|
else # CMD_EXE
|
||||||
|
|
||||||
@ -26,6 +26,9 @@ GH_PAGES = ../../gh-pages
|
|||||||
clean:
|
clean:
|
||||||
$(RM) -r ../html ../info
|
$(RM) -r ../html ../info
|
||||||
|
|
||||||
|
zip:
|
||||||
|
cd .. && zip cc65 html/*.*
|
||||||
|
|
||||||
doc: html info
|
doc: html info
|
||||||
|
|
||||||
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
|
html: $(addprefix ../html/,$(SGMLS:.sgml=.html) doc.css doc.png)
|
||||||
|
@ -33,7 +33,15 @@ DRVTYPES = emd \
|
|||||||
ser \
|
ser \
|
||||||
tgi
|
tgi
|
||||||
|
|
||||||
.PHONY: all mostlyclean clean install lib $(TARGETS)
|
OUTPUTDIRS = lib \
|
||||||
|
$(DRVTYPES) \
|
||||||
|
targetutil \
|
||||||
|
asminc \
|
||||||
|
cfg \
|
||||||
|
include \
|
||||||
|
$(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))
|
||||||
|
|
||||||
|
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@ -75,23 +83,28 @@ else # CMD_EXE
|
|||||||
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
|
|
||||||
INSTALLDIRS = ../asminc ../cfg ../include \
|
|
||||||
$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)) \
|
|
||||||
../lib ../targetutil $(addprefix ../,$(DRVTYPES))
|
|
||||||
|
|
||||||
define INSTALL_recipe
|
define INSTALL_recipe
|
||||||
|
|
||||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||||
$(INSTALL) -d $(subst ..,$(DESTDIR)$(datadir),$(dir))
|
$(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
|
||||||
$(INSTALL) -m644 $(dir)/*.* $(subst ..,$(DESTDIR)$(datadir),$(dir))
|
$(INSTALL) -m644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
|
||||||
|
|
||||||
endef # INSTALL_recipe
|
endef # INSTALL_recipe
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(foreach dir,$(INSTALLDIRS),$(INSTALL_recipe))
|
$(foreach dir,$(OUTPUTDIRS),$(INSTALL_recipe))
|
||||||
|
|
||||||
endif # CMD_EXE
|
endif # CMD_EXE
|
||||||
|
|
||||||
|
define ZIP_recipe
|
||||||
|
|
||||||
|
cd .. && zip cc65 $(dir)/*.*
|
||||||
|
|
||||||
|
endef # ZIP_recipe
|
||||||
|
|
||||||
|
zip:
|
||||||
|
$(foreach dir,$(OUTPUTDIRS),$(ZIP_recipe))
|
||||||
|
|
||||||
$(TARGETS):
|
$(TARGETS):
|
||||||
@$(MAKE) --no-print-directory $@
|
@$(MAKE) --no-print-directory $@
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ PROGS = ar65 \
|
|||||||
sim65 \
|
sim65 \
|
||||||
sp65
|
sp65
|
||||||
|
|
||||||
.PHONY: all mostlyclean clean install avail unavail bin $(PROGS)
|
.PHONY: all mostlyclean clean install zip avail unavail bin $(PROGS)
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@ -97,6 +97,9 @@ unavail:
|
|||||||
|
|
||||||
endif # CMD_EXE
|
endif # CMD_EXE
|
||||||
|
|
||||||
|
zip:
|
||||||
|
cd .. && zip cc65 bin/*
|
||||||
|
|
||||||
define OBJS_template
|
define OBJS_template
|
||||||
|
|
||||||
$1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
|
$1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user