History

Makefile: revamp "tar" target

- Creates release tarball from *current* git branch - Includes tcc-doc.html - converts important windows files files to CRLF (requirement for the cmd.exe batch processor, convenience for reading the txt in notepad)

grischka committed 13 years ago

Commit 5ebc6a91 parent b1743991 file · +17 −10Browse files

Unified · Split

Makefile+17−10
@@ -363,16 +363,6 @@ tcc.1: tcc-doc.texi · 362 unmodified lines
363tcc-doc.info: tcc-doc.texi363tcc-doc.info: tcc-doc.texi
364 -makeinfo $<364 -makeinfo $<
365 365
366.PHONY: all clean tar distclean install uninstall FORCE
367
368# tar release (use 'make -k tar' on a checkouted tree)
369TCC-VERSION=tcc-$(shell cat VERSION)
370tar:
371 rm -rf /tmp/$(TCC-VERSION)
372 cp -r . /tmp/$(TCC-VERSION)
373 ( cd /tmp ; tar zcvf ~/$(TCC-VERSION).tar.gz $(TCC-VERSION) --exclude CVS )
374 rm -rf /tmp/$(TCC-VERSION)
375
376# in tests subdir366# in tests subdir
377export LIBTCC1367export LIBTCC1
378 368
@@ -395,4 +385,21 @@ config.mak: · 16 unmodified lines
395 @echo "Please run ./configure."385 @echo "Please run ./configure."
396 @exit 1386 @exit 1
397 387
388# create release tarball from *current* git branch (including tcc-doc.html
389# and converting two files to CRLF)
390TCC-VERSION := tcc-$(shell cat VERSION)
391tar: tcc-doc.html
392 mkdir $(TCC-VERSION)
393 ( cd $(TCC-VERSION) && git --git-dir ../.git checkout -f )
394 cp tcc-doc.html $(TCC-VERSION)
395 for f in tcc-win32.txt build-tcc.bat ; do \
396 cat win32/$$f | sed 's,\(.*\),\1\r,g' > $(TCC-VERSION)/win32/$$f ; \
397 done
398 tar cjf $(TCC-VERSION).tar.bz2 $(TCC-VERSION)
399 rm -rf $(TCC-VERSION)
400 git reset
401
402
403.PHONY: all clean tar distclean install uninstall FORCE
404
398endif # ifeq ($(TOP),.)405endif # ifeq ($(TOP),.)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t