[0] | 1 | #!/usr/bin/make -f |
---|
| 2 | # -*- makefile -*- |
---|
| 3 | # Sample debian/rules that uses debhelper. |
---|
| 4 | # This file was originally written by Joey Hess and Craig Small. |
---|
| 5 | # As a special exception, when this file is copied by dh-make into a |
---|
| 6 | # dh-make output file, you may use that output file without restriction. |
---|
| 7 | # This special exception was added by Craig Small in version 0.37 of dh-make. |
---|
| 8 | |
---|
| 9 | # Uncomment this to turn on verbose mode. |
---|
| 10 | |
---|
| 11 | DEST=debian/dotclear/usr/share/dotclear |
---|
| 12 | |
---|
| 13 | configure: configure-stamp |
---|
| 14 | configure-stamp: |
---|
| 15 | dh_testdir |
---|
| 16 | # Add here commands to configure the package. |
---|
| 17 | |
---|
| 18 | touch configure-stamp |
---|
| 19 | |
---|
| 20 | build: build-stamp |
---|
| 21 | |
---|
| 22 | build-stamp: configure-stamp |
---|
| 23 | dh_testdir |
---|
| 24 | |
---|
| 25 | # Add here commands to compile the package. |
---|
| 26 | $(MAKE) config |
---|
| 27 | touch build-stamp |
---|
| 28 | |
---|
| 29 | clean: |
---|
| 30 | dh_testdir |
---|
| 31 | dh_testroot |
---|
| 32 | rm -f build-stamp configure-stamp |
---|
| 33 | |
---|
| 34 | # Add here commands to clean up after the build process. |
---|
| 35 | -$(MAKE) clean |
---|
| 36 | |
---|
| 37 | dh_clean |
---|
| 38 | |
---|
| 39 | install: build |
---|
| 40 | dh_testdir |
---|
| 41 | dh_testroot |
---|
| 42 | dh_clean -k |
---|
| 43 | dh_installdirs |
---|
| 44 | |
---|
| 45 | # Add here commands to install the package into debian/dotclear. |
---|
| 46 | cp -af $(CURDIR)/_dist/dotclear $(CURDIR)/debian/dotclear/usr/share/ |
---|
| 47 | mkdir -p $(CURDIR)/debian/dotclear/etc/dotclear |
---|
| 48 | mv $(DEST)/inc/config.php.in $(CURDIR)/debian/dotclear/etc/dotclear/config.php |
---|
| 49 | |
---|
| 50 | # Clearbricks is in libclearbricks |
---|
| 51 | rm -rf $(CURDIR)/debian/dotclear/usr/share/dotclear/inc/clearbricks |
---|
| 52 | |
---|
| 53 | # Language packs |
---|
| 54 | mkdir -p $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales |
---|
| 55 | cp -af $(CURDIR)/locales/ja $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales/ |
---|
| 56 | find $(CURDIR)/debian/dotclear-l10n-ja/usr/share/dotclear/locales/ -type d -name '.svn' | xargs rm -rf |
---|
| 57 | |
---|
| 58 | # Build architecture-independent files here. |
---|
| 59 | binary-indep: build install |
---|
| 60 | # We have nothing to do by default. |
---|
| 61 | |
---|
| 62 | # Build architecture-dependent files here. |
---|
| 63 | binary-arch: build install |
---|
| 64 | dh_testdir |
---|
| 65 | dh_testroot |
---|
| 66 | dh_installchangelogs |
---|
| 67 | dh_installdocs |
---|
| 68 | dh_installexamples |
---|
| 69 | dh_installman |
---|
| 70 | dh_link |
---|
| 71 | dh_strip |
---|
| 72 | dh_compress |
---|
| 73 | dh_fixperms |
---|
| 74 | dh_installdeb |
---|
| 75 | dh_gencontrol |
---|
| 76 | dh_md5sums |
---|
| 77 | dh_builddeb |
---|
| 78 | |
---|
| 79 | binary: binary-indep binary-arch |
---|
| 80 | .PHONY: build clean binary-indep binary-arch binary install configure |
---|