File: rules

package info (click to toggle)
pandora-build 0.98-1.2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,756 kB
  • sloc: sh: 10,432; python: 374; makefile: 99
file content (40 lines) | stat: -rwxr-xr-x 1,087 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DH = dh

%:
	$(DH) $@

build: 
	[ -f configure ] || autoreconf -fi
	$(DH) build 

clean:
	make distclean || true
	rm -fr configure Makefile.in aclocal.m4 autom4te.cache configure
	rm -f config/install-sh config/missing
	$(DH) clean

install: build 
	$(DH) install

binary: binary-indep

binary-indep: install
	$(DH) binary-indep

UPSTREAM = http://bazaar.launchpad.net/~mordred/pandora-build/devel

# nb the double-indirect below is to allow eventual idempotent writes, where
# the same tar is always created. At this point its more a uupdate kindof thing.
get-orig-source::
	rm -rf debian/new-upstream
	mkdir debian/new-upstream
	revno=$$(bzr revno ${UPSTREAM}); \
echo exporting revno $$revno; \
bzr branch -r $$revno ${UPSTREAM} debian/new-upstream/pandora-build; \
bzr export debian/new-upstream/pandora-build-0~bzr$$revno debian/new-upstream/pandora-build; \
tar -C debian/new-upstream/ -c pandora-build-0~bzr$$revno | gzip -9nf > ../pandora-build_0~bzr$$revno.orig.tar.gz
	rm -rf debian/new-upstream

.PHONY: build clean binary-indep binary-arch binary install