Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
e60d0ffe
Commit
e60d0ffe
authored
Aug 01, 2013
by
Paweł Szostek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefile: rewrite slightly
parent
fba34965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
make_tarball
make_tarball
+14
-18
No files found.
make_tarball
View file @
e60d0ffe
...
...
@@ -15,33 +15,29 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#
SRC_FILES := configparser.py dep_solver.py env.py\
flow_altera.py global_mod.py hdlmake_kernel.py __main__.py\
makefile_writer.py manifest_parser.py module.py module_pool.py path.py \
srcfile.py vlog_parser.py new_dep_solver.py
SRC_DIR := src
SRC_FILES := $(shell find hdlmake -name '*py')
SRC_FILES_BASENAMES = $(foreach src, $(SRC_FILES), $(shell basename $(src)))
SRC := $(foreach src, $(SRC_FILES), $(SRC_DIR)/$(src))
TAG = $(shell git describe --abbrev=0 --tags --always)#get the latest tag
RELEASE = hdlmake-$(TAG).tar.gz
EXEC := hdlmake
ARCH := hdlmake$(TAG)
executable: $(EXEC)
$(
EXEC): $(SRC
)
single_file_app: $(ARCH) build_tag
$(
ARCH): $(SRC_FILES
)
bash embed_build_id.sh
cd
$(SRC_DIR)
&&\
zip $(
EXEC) build_hash.py $(SRC_FIL
ES) &&\
echo '#!/usr/bin/python' > $(
EXEC
) &&\
cat $(
EXEC).zip >> $(EXEC
) &&\
rm $(
EXEC
).zip &&\
chmod +x $(
EXEC
) &&\
mv $(
EXEC
) ..
cd
hdlmake
&&\
zip $(
ARCH) build_hash.py $(SRC_FILES_BASENAM
ES) &&\
echo '#!/usr/bin/python' > $(
ARCH
) &&\
cat $(
ARCH).zip >> $(ARCH
) &&\
rm $(
ARCH
).zip &&\
chmod +x $(
ARCH
) &&\
mv $(
ARCH
) ..
release: $(RELEASE)
$(RELEASE): $(
EXEC
) $(SRC)
$(RELEASE): $(
ARCH
) $(SRC)
tar -zcvf $@ *
.PHONY: clean
.PHONY: clean
build_tag
clean:
rm -f $(SRC_DIR)/*~ $(PREFIX)/*pyc $(EXEC) hdlmake-*.tar.gz
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment