File: rules

package info (click to toggle)
wmcoincoin 2.6.4-git-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,936 kB
  • ctags: 4,770
  • sloc: ansic: 43,896; sh: 837; makefile: 594; yacc: 291; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 1,132 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
30
31
32
33
#!/usr/bin/make -f

INSTDIR = $(CURDIR)/debian/wmcoincoin/usr
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autoreconf

override_dh_install:
	dh_install
	mv $(INSTDIR)/bin/wmcoincoin $(INSTDIR)/bin/wmcoincoin_player \
		$(INSTDIR)/lib/wmcoincoin/
	mv $(INSTDIR)/bin/wmcoincoin-* $(INSTDIR)/share/wmcoincoin
	rm -f $(INSTDIR)/share/wmcoincoin/wmcoincoin.spec
	rm -f $(INSTDIR)/share/wmcoincoin/README
	( cd $(INSTDIR)/share/pixmaps && mv icon.xpm wmcoincoin.xpm )
	( cd $(INSTDIR)/bin && mv wmcoincoin.sh wmcoincoin )

get-orig-source:
	@wget https://github.com/seeschloss/wmcoincoin/archive/master.tar.gz
	@git checkout upstream
	@git pull https://github.com/seeschloss/wmcoincoin.git
	@grep -Po '(?<=AC_INIT\(wmcoincoin, ).*(?=,)' configure.ac \
		> version
	@git show HEAD^:configure.ac | \
		grep -Po '(?<=AC_INIT\(wmcoincoin, ).*(?=,)' > oldversion
	@if test `cat oldversion` = `cat version` ; then \
		echo "`cat version`+`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version; \
	fi
	git checkout master
	@mv -v master.tar.gz \
		../wmcoincoin_`cat version`.orig.tar.gz
	@rm version oldversion