version 1.6 | | version 1.7 |
---|
| | |
./configure --prefix=/$(LIB_DIR) \ | | ./configure --prefix=/$(LIB_DIR) \ |
--datadir=/usr/share/games \ | | --datadir=/usr/share/games \ |
--bindir=/usr/games \ | | --bindir=/usr/games \ |
--mandir=/usr/share/man/man1 \ | | --mandir=/usr/share/man \ |
--localstatedir=/var/games \ | | --localstatedir=/var/games \ |
--sysconfdir=/etc | | --sysconfdir=/etc |
| | |
| | |
dh_testroot | | dh_testroot |
-rm -f build-stamp | | -rm -f build-stamp |
-rm -f install-stamp | | -rm -f install-stamp |
-rm -rf debian/crossfire-common | | |
-rm -rf debian/crossfire-server-dbg | | |
-rm -rf debian/crossfire-server | | -rm -rf debian/crossfire-server |
-rm -rf debian/crossfire-doc | | |
-rm -rf debian/crossfire-edit | | |
| | |
# Add here commands to clean up after the build process. | | # Add here commands to clean up after the build process. |
-$(MAKE) clean | | |
-$(MAKE) distclean | | -$(MAKE) distclean |
-rm -rf Makefile | | |
| | |
-find -name "Makefile" -print0 | xargs -0r rm | | |
-rm config.cache | | |
-rm config.log | | |
-rm config.status | | |
-rm include/autoconf.h | | |
-rm socket/socket.a | | |
-rm lib/xbmtobdf.o | | |
-rm common/libcross.a | | |
-rm lib/xbmtobdf | | |
-rm random_maps/random_map.a | | |
-rm random_maps/standalone.o | | |
| | |
dh_clean | | dh_clean |
| | |
| | |
dpatch deapply-all --verbose | | dpatch deapply-all --verbose |
rm -rf patch-stamp debian/patched | | rm -rf patch-stamp debian/patched |
| | |
common: build | | install: binary-indep binary-arch |
| | |
| | # Build architecture-independent files here. |
| | binary-indep: |
dh_testdir | | dh_testdir |
dh_testroot | | dh_testroot |
dh_clean -k | | dh_clean -k -i |
dh_installdirs | | dh_installdirs -i |
| | |
$(MAKE) -C common install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | cd lib && \ |
$(MAKE) -C random_maps install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
$(MAKE) -C socket install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C include install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C lib install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C utils install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C plugin install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C devel install DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
$(MAKE) -C utils uninstall-nodist_binSCRIPTS DESTDIR=$(CURDIR)/debian/crossfire-server-common | | |
| | |
chown -R games.games $(CURDIR)/debian/crossfire-server-common/var/games/crossfire | | |
chmod 2755 $(CURDIR)/debian/crossfire-server-common/var/games/crossfire | | |
install -D -m775 -o root -g games -d $(CURDIR)/debian/crossfire-server-common/var/log/crossfire | | |
install -D -m755 -o root -g root -d $(CURDIR)/debian/crossfire-server-common/etc/logrotate.d/ | | |
install -m644 $(CURDIR)/debian/logrotate.d $(CURDIR)/debian/crossfire-server-common/etc/logrotate.d/crossfire-server | | |
dh_install | | |
| | |
debug: build common | | cd lib && \ |
dh_testdir | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_testroot | | |
dh_installdirs | | |
$(MAKE) -C server install DESTDIR=$(CURDIR)/debian/crossfire-server-dbg | | |
dh_install | | |
| | |
install: build debug common | | cd utils && \ |
dh_testdir | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_testroot | | |
dh_installdirs | | |
$(MAKE) -C server install DESTDIR=$(CURDIR)/debian/crossfire-server | | |
dh_install | | |
| | |
# Build architecture-independent files here. | | cd doc && \ |
binary-indep: build install | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_testdir -i | | |
# dh_installmenu -i | | dh_installdocs -pcrossfire-doc |
dh_installdocs -i | | dh_install -i |
dh_installchangelogs -i | | |
dh_compress -i | | |
dh_fixperms -i | | |
# dh_suidregister -i | | |
dh_installdeb -i | | |
dh_gencontrol -i | | |
dh_md5sums -i | | |
dh_builddeb -i | | |
| | |
# Build architecture-dependent files here. | | # Build architecture-dependent files here. |
binary-arch: build install | | binary-arch: |
dh_testdir -a | | dh_testdir |
dh_testroot | | dh_testroot |
# dh_installmenu -a | | dh_installchangelogs |
# | | |
dh_installinit -pcrossfire-server-common -Pdebian/crossfire-server-common | | cd random_maps && \ |
dh_installdocs -pcrossfire-server-common -Pdebian/crossfire-server-common | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_installman -pcrossfire-server-common -Pdebian/crossfire-server-common doc/crossfire.man | | |
dh_installman -pcrossfire-server-common -Pdebian/crossfire-server-common doc/crossfire-config.man | | cd server && \ |
dh_installman -pcrossfire-server-common -Pdebian/crossfire-server-common doc/crossloop.web.man | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_installchangelogs -pcrossfire-server-common -Pdebian/crossfire-server-common | | |
dh_compress -pcrossfire-server-common -Pdebian/crossfire-server-common | | cd plugin && \ |
dh_installdeb -pcrossfire-server-common -Pdebian/crossfire-server-common | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
dh_installdebconf -pcrossfire-server-common -Pdebian/crossfire-server-common | | |
dh_shlibdeps -pcrossfire-server-common -Pdebian/crossfire-server-common | | cd devel && \ |
dh_gencontrol -pcrossfire-server-common -Pdebian/crossfire-server-common | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
| | |
dh_md5sums -pcrossfire-server-dbg -Pdebian/crossfire-server-dbg | | cd crossedit && \ |
dh_builddeb -pcrossfire-server-dbg -Pdebian/crossfire-server-dbg | | $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp |
| | dh_movefiles -pcrossfire-edit |
dh_strip -pcrossfire-server -Pdebian/crossfire-server | | |
dh_md5sums -pcrossfire-server -Pdebian/crossfire-server | | dh_installlogrotate |
dh_builddeb -pcrossfire-server -Pdebian/crossfire-server | | dh_installinit -r -- defaults 99 01 |
| | dh_installman |
dh_installdocs -pcrossfire-edit -Pdebian/crossfire-edit | | dh_strip --dbg-package=crossfire-server |
dh_installchangelogs -pcrossfire-edit -Pdebian/crossfire-edit | | dh_compress |
dh_installman -pcrossfire-edit -Pdebian/crossfire-edit doc/crossedit.man | | dh_fixperms |
dh_compress -pcrossfire-edit -Pdebian/crossfire-edit | | dh_makeshlibs -V |
dh_installdeb -pcrossfire-edit -Pdebian/crossfire-edit | | dh_installdeb |
dh_shlibdeps -pcrossfire-edit -Pdebian/crossfire-edit | | dh_gencontrol |
dh_gencontrol -pcrossfire-edit -Pdebian/crossfire-edit | | dh_md5sums |
dh_strip -pcrossfire-edit -Pdebian/crossfire-edit | | dh_builddeb |
dh_md5sums -pcrossfire-edit -Pdebian/crossfire-edit | | |
dh_builddeb -pcrossfire-edit -Pdebian/crossfire-edit | | |
| | |
source diff: | | source diff: |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false | | @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false |
| | |
binary: binary-indep binary-arch | | binary: binary-indep binary-arch |
.PHONY: build clean binary-indep binary-arch binary install | | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch |