[go: up one dir, main page]

File: rules

package info (click to toggle)
fish 1.22.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,408 kB
  • ctags: 2,347
  • sloc: ansic: 35,286; sh: 3,022; makefile: 554
file content (29 lines) | stat: -rwxr-xr-x 1,029 bytes parent folder | download
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
#!/usr/bin/make -f

# Add here any variable or target overrides you need

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_EXTRA_FLAGS := --without-xsel
#DEB_MAKE_CHECK_TARGET := test
FISH_VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | awk '{print $$2}' | sed 's/-[0-9]\+$$//')

install/fish::
	rm -f debian/fish/usr/share/doc/fish/ChangeLog
	for f in debian/completions/*; do \
	  cp $$f debian/fish/usr/share/fish/completions/; \
	done

clean::
	rm -f xsel-0.9.6.tar.cdbs-config_list

export: clean
	-[ -d "build-area/fish-$(FISH_VERSION)" ] && rm -rf build-area/fish-$(FISH_VERSION)
	darcs get . build-area/fish-$(FISH_VERSION)
	rm -rf build-area/fish-$(FISH_VERSION)/_darcs
	cd build-area/fish-$(FISH_VERSION) && chmod +x debian/rules
	cp upstream/fish_$(FISH_VERSION).orig.tar.gz build-area/
	cd build-area && tar zxf fish_$(FISH_VERSION).orig.tar.gz
	cd build-area && dpkg-source -b fish-$(FISH_VERSION)