File: Makefile

package info (click to toggle)
qtwebengine-opensource-src 5.7.1+dfsg-6.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,028,096 kB
  • ctags: 1,436,736
  • sloc: cpp: 5,960,176; ansic: 3,477,727; asm: 395,492; python: 320,633; sh: 96,504; perl: 69,449; xml: 42,977; makefile: 28,408; objc: 9,962; yacc: 9,847; tcl: 5,430; lex: 2,259; ruby: 1,053; lisp: 522; awk: 497; pascal: 310; cs: 249; sed: 53
file content (69 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

prep:
	@echo
	# Install needed packages
	sudo apt-get install subversion fakeroot python-setuptools python-subversion
	#
	@echo
	# Check that the person has .pypirc
	@if [ ! -e ~/.pypirc ]; then \
		echo "Please create a ~/.pypirc with the following contents:"; \
		echo "[server-login]"; \
		echo "username:google_opensource"; \
		echo "password:<see valentine>"; \
	fi
	#
	@echo
	# FIXME(tansell): Check that the person has .dputrc for PPA

clean:
	# Clean up any build files.
	python setup.py clean --all
	#
	# Clean up the debian stuff
	fakeroot ./debian/rules clean
	#
	# Clean up everything else
	rm MANIFEST || true
	rm -rf build-*
	#
	# Clean up the egg files
	rm -rf *egg*
	#
	# Remove dist
	rm -rf dist

dist:
	# Generate the tarball based on MANIFEST.in
	python setup.py sdist
	#
	# Build the debian packages
	fakeroot ./debian/rules binary
	mv ../python-gflags*.deb ./dist/
	#
	# Build the python Egg
	python setup.py bdist_egg
	#
	@echo
	@echo "Files to upload:"
	@echo "--------------------------"
	@ls -l ./dist/

push:
	# Send the updates to svn
	# Upload the source package to code.google.com
	- /home/build/opensource/tools/googlecode_upload.py \
		-p python-gflags ./dist/*
	#
	# Upload the package to PyPi
	- python setup.py sdist upload
	- python setup.py bdist_egg upload
	#
	# Upload the package to the ppa
	# FIXME(tansell): dput should run here

check:
	# Run all the tests.
	for test in tests/*.py; do PYTHONPATH=. python $$test || exit 1; done

.PHONY: prep dist clean push check