[ucsim] Implement [features:#769] Check writeability of output file when uart sends
[sdcc.git] / sdcc-build / lib / src-archive.mk
blobbc16736addd546356e4d0ef39b22319fdcdbe120
1 # Makefile that can archive the source trees for SDCC'S snapshot page
2 ARCHIVESRCTREES = $(ARCHIVETREES:%=%-src-archive)
4 _ARCHIVE_SRC_TREE_BASENAME = $(shell basename $@ -src-archive)
5 _ARCHIVE_BASENAME = $(_ARCHIVE_SRC_TREE_BASENAME)-src
6 _ARCHIVE_DIR = $(HTDOCSDIR)/$(TARBALLBASE)/$(_ARCHIVE_BASENAME)
7 _ARCHIVE_NAME = $(_ARCHIVE_BASENAME)-$(SNAPSHOTID).tar.bz2
9 %-src-archive: fetch-orig-trees
10 mkdir -p $(_ARCHIVE_DIR)
11 cd $(ORIGDIR); \
12 tar -cjf $(_ARCHIVE_DIR)/$(_ARCHIVE_NAME) --exclude=CVS --exclude=.svn $(_ARCHIVE_SRC_TREE_BASENAME)
14 .PHONY: archive-src-trees
15 archive-src-trees: $(ARCHIVESRCTREES)