Project

General

Profile

« Previous | Next » 

Revision 65351e8c

Added by koszko over 1 year ago

add dist make target

View differences:

Makefile.in
28 28
# The default target: placed up here
29 29
default: $(default_target)
30 30

  
31
# haketilo-$(version).tar is not actually a phony target but it is too hard to
32
# track all the files that might require remaking it, so we instead re-run it
33
# every time.
31 34
.PHONY: mozilla install-mozilla chromium install-chromium \
32 35
        all all-unpacked default unpacked \
33 36
        install install-html install-dvi install-pdf install-ps uninstall \
34 37
        install-strip clean distclean mostlyclean maintainer-clean TAGS info \
35 38
        dvi html pdf ps dist check installcheck installdirs \
36
	test-prepare test test-environment
39
	test-prepare test test-environment haketilo-$(version).tar
37 40

  
38 41
# core files
39 42
icons/haketilo16.png: icons/haketilo.svg
......
96 99
	rm -f mozilla-build.zip chromium-build.zip exports_init.js
97 100
	rm -rf pytest.ini certs injected_scripts geckodriver.log
98 101
	rm -rf certs/ test__pycache__/ .pytest_cache/
102
	rm -f *.tar *.tar.gz
99 103

  
100 104
distclean: clean
101 105
	rm -f Makefile config.status record.conf
......
103 107
maintainer-clean: distclean
104 108
	@echo 'This command is intended for maintainers to use; it'
105 109
	@echo 'deletes files that may need special tools to rebuild.'
106
	rm -f "$(srcdir)"/icons/*.png
110
	rm -f "$(srcdir)"/icons/*.png "$(srcdir)"/FILES.txt
111

  
112
# To make the next rule happy in case we're building from tarball.
113
$(srcdir)/.git:
114

  
115
$(srcdir)/FILES.txt: $(srcdir)/.git
116
	if [ -e "$(srcdir)/.git" ]; then                                    \
117
		git -C "$(srcdir)" ls-files --cached --recurse-submodules | \
118
			grep -v gitmodules > $@;                            \
119
		printf 'FILES.txt\n' >> $@;                                 \
120
	fi
121

  
122
haketilo-$(version).tar: FILES.txt
123
	HERE="$$(pwd)";                                              \
124
	cd "$(srcdir)";                                              \
125
	tar -caf "$$HERE/$@" --transform='s_^_haketilo-$(version)/_' \
126
		$$(cat FILES.txt)
127

  
128
haketilo-$(version).tar.gz: haketilo-$(version).tar
129
	gzip < haketilo-$(version).tar > haketilo-$(version).tar.gz
130

  
131
dist: haketilo-$(version).tar.gz
107 132

  
108 133
# Files for constructing the makefile
109 134
Makefile: config.status Makefile.in record.conf
......
113 138
	cp "$(srcdir)"/write_makefile.sh config.status
114 139

  
115 140
# Unused GNU-specified targets
116
dist:
117 141
install-html:
118 142
install-dvi:
119 143
install-pdf:
write_makefile.sh
29 29
DEFAULT_TARGET="$(grep '^default_target = ' record.conf)"
30 30
DEFAULT_TARGET="${DEFAULT_TARGET#'default_target = '}"
31 31

  
32
eval VERSION=$(cat "$SRCDIR/version")
32
VERSION=$(cat "$SRCDIR/version" | sed 's/^"\(.*\)"$/\1/; s/-beta/b/')
33 33

  
34 34
sed '/^# Configuration gets included here by write_makefile\.sh$/r record.conf
35 35
s|<<VPATH>>|'"$SRCDIR"'|

Also available in: Unified diff