Codebase list pangzero / debian/1.3-2 debian / rules
debian/1.3-2

Tree @debian/1.3-2 (Download .tar.gz)

rules @debian/1.3-2

3c0af3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9b31f03
 
 
3c0af3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bca8c84
3c0af3b
9b31f03
 
 
84d09e7
 
3c0af3b
 
 
 
 
 
 
 
 
 
c000f82
 
3c0af3b
 
 
 
 
 
 
 
 
 
 
a2bef64
3c0af3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

config.status: configure
	dh_testdir

	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2

ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif
	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
		--bindir=\$${prefix}/games --datadir=\$${prefix}/share/games \
		CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"

build: build-stamp

build-stamp:  config.status
	dh_testdir
	$(MAKE)
	#docbook-to-man debian/pangzero.sgml > pangzero.1
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp 
	[ ! -f Makefile ] || $(MAKE) distclean
	-rm -f config.sub config.guess config.log config.status

	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2

	rm -rf .pc

	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	$(MAKE) DESTDIR=$(CURDIR)/debian/pangzero install
	dh_installdirs usr/share/pixmaps
	dh_install debian/pangzero.xpm usr/share/pixmaps
	dh_installdirs usr/share/applications
	dh_install debian/pangzero.desktop usr/share/applications

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs
	dh_installexamples
#	dh_install
	dh_installmenu
	dh_installinfo
	dh_installman debian/pangzero.6
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install

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