#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PACKAGE=mlmmj export DH_OPTIONS export TEXTDIR = $(CURDIR)/debian/mlmmj/usr/share/mlmmj/text.skel CONFIGURERUN=no include /usr/share/dpatch/dpatch.make # 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) confflags := --prefix=/usr --mandir=/usr/share/man ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += --build=$(DEB_BUILD_GNU_TYPE) else confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) endif export CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: patch-stamp configure ./configure $(confflags) build-arch: build-arch-stamp config.status dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/mlmmj.sgml > mlmmj.1 build-arch-stamp: touch build-arch-stamp build-indep-stamp: touch build-indep-stamp build-indep: build-indep-stamp config.status clean: unpatch [ ! -f Makefile ] || $(MAKE) distclean rm -f build-stamp build-indep-stamp build-arch-stamp config.log configure-stamp rm -rf $(CURDIR)/debian/DEBIAN dh_clean install-arch: build-arch dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/mlmmj. $(MAKE) install DESTDIR=$(CURDIR)/debian/mlmmj # Install translated list texts install -d \ $(TEXTDIR)/da/ \ $(TEXTDIR)/cz/ \ $(TEXTDIR)/it/ \ $(TEXTDIR)/de/ \ $(TEXTDIR)/es/ install -m 644 listtexts/da/* $(TEXTDIR)/da/ install -m 644 listtexts/cz/* $(TEXTDIR)/cz/ install -m 644 listtexts/it/* $(TEXTDIR)/it/ install -m 644 listtexts/de/* $(TEXTDIR)/de/ install -m 644 listtexts/es/* $(TEXTDIR)/es/ # Don't advertise that mlmmj-make-ml is a shell script # And install our own version of mlmmj-make-ml, until upstream # has stabilised somewhat rm -f $(CURDIR)/debian/mlmmj/usr/bin/mlmmj-make-ml.sh install -m 755 -D $(CURDIR)/debian/mlmmj-make-ml.sh \ $(CURDIR)/debian/mlmmj/usr/bin/mlmmj-make-ml dh_install -s install-indep: build-indep # mlmmj-php-web install -m 644 -D $(CURDIR)/contrib/web/php-user/mlmmj.php \ $(CURDIR)/debian/mlmmj-php-web/var/www/mlmmj-php-web/mlmmj.php install -m 644 -D $(CURDIR)/contrib/web/php-user/README \ $(CURDIR)/debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/README install -m 644 -D $(CURDIR)/contrib/web/php-user/example.html \ $(CURDIR)/debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/examples/examples.html # mlmmj-php-web-admin install -d $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin install -m 644 $(CURDIR)/contrib/web/php-admin/htdocs/*.php \ $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin/ install -m 644 $(CURDIR)/contrib/web/php-admin/htdocs/dot.htaccess \ $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin/.htaccess install -m 644 -D $(CURDIR)/contrib/web/php-admin/README \ $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/doc/mlmmj-php-web-admin/README install -d $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf install -d $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates install -m 644 $(CURDIR)/contrib/web/php-admin/conf/* \ $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf/ install -m 644 $(CURDIR)/contrib/web/php-admin/templates/* \ $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates/ install -m 644 -D $(CURDIR)/debian/htpasswd \ $(CURDIR)/debian/mlmmj-php-web-admin/etc/mlmmj-php-web-admin/htpasswd binary-common: dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs -A FAQ TUNABLES TODO UPGRADE AUTHORS README README.access VERSION README.exim4 README.sendmail dh_installdebconf dh_installexamples # dh_install # dh_installmenu dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit dh_installcron # dh_installinfo dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common binary: binary-arch binary-indep build: build-arch build-indep .PHONY: build-arch build-indep clean binary-indep binary-arch binary-common install-indep install-arch build configure