2002-11-01 18:13:27 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
export DH_COMPAT=3
|
|
|
|
|
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
2002-12-09 13:38:01 +00:00
|
|
|
export CXXFLAGS += -g
|
2002-11-01 18:13:27 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
build:
|
|
|
|
dh_testdir
|
2003-12-17 15:32:09 +00:00
|
|
|
./configure
|
2002-11-01 18:13:27 +00:00
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean
|
2003-12-17 15:32:09 +00:00
|
|
|
rm -f debian/changelog
|
|
|
|
-$(MAKE) clean
|
2002-11-01 18:13:27 +00:00
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean
|
|
|
|
dh_installdirs
|
|
|
|
install -m0755 scummvm $(CURDIR)/debian/scummvm-cvs/usr/games/scummvm
|
|
|
|
install -m0644 scummvm.xpm $(CURDIR)/debian/scummvm-cvs/usr/share/icons
|
|
|
|
|
|
|
|
binary: binary-arch binary-indep
|
|
|
|
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdocs
|
|
|
|
dh_installchangelogs NEWS
|
|
|
|
dh_installman
|
|
|
|
dh_installmenu
|
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary-indep:
|
|
|
|
|
|
|
|
.PHONY: build clean binary install binary-arch binary-indep
|