dotclear/debian/rules

81 lines
2.0 KiB
Plaintext
Raw Normal View History

2011-04-08 05:35:36 +00:00
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
DEST=debian/dotclear/usr/share/dotclear
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
2011-04-08 05:35:36 +00:00
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
2011-04-08 05:35:36 +00:00
# Add here commands to compile the package.
$(MAKE) config
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
2011-04-08 05:35:36 +00:00
# Add here commands to clean up after the build process.
-$(MAKE) clean
2011-04-08 05:35:36 +00:00
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
2011-04-08 05:35:36 +00:00
# Add here commands to install the package into debian/dotclear.
cp -af $(CURDIR)/_dist/dotclear $(CURDIR)/debian/dotclear/usr/share/
mkdir -p $(CURDIR)/debian/dotclear/etc/dotclear
mv $(DEST)/inc/config.php.in $(CURDIR)/debian/dotclear/etc/dotclear/config.php
2011-04-08 05:35:36 +00:00
# Clearbricks is in libclearbricks
rm -rf $(CURDIR)/debian/dotclear/usr/share/dotclear/inc/clearbricks
2011-04-08 05:35:36 +00:00
# Language packs
mkdir -p $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales
cp -af $(CURDIR)/locales/ja $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales/
find $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales/ -type d -name '.svn' | xargs rm -rf
2011-04-08 05:35:36 +00:00
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure