OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/make -f |
| 2 # -*- makefile -*- |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Uncomment this to turn on verbose mode. |
| 8 #export DH_VERBOSE=1 |
| 9 |
| 10 # The number of jobs to pass to tools that can run in parallel (such as make |
| 11 # and dpkg-buildpackage |
| 12 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'` |
| 13 |
| 14 build: build-stamp |
| 15 build-stamp: |
| 16 dh_testdir |
| 17 scons -j$(NUM_JOBS) |
| 18 touch $@ |
| 19 |
| 20 clean: |
| 21 dh_testdir |
| 22 dh_testroot |
| 23 rm -f build-stamp |
| 24 scons -c |
| 25 dh_clean |
| 26 |
| 27 # NOTE: Ideally we would make 'theme' the default theme such that Gtk |
| 28 # automatically loads it, but we aren't running xsettings, which means Gtk |
| 29 # always uses Raleigh. To simulate this we create a link from theme's gtkrc |
| 30 # to the default place Gtk loads from (/etc/gtk-2.0/gtkrc). |
| 31 install: build |
| 32 dh_testdir |
| 33 dh_testroot |
| 34 dh_clean -k |
| 35 dh_installdirs |
| 36 mkdir -p $(CURDIR)/debian/chromeos-theme/usr/share/themes/theme/gtk-2.0 |
| 37 mkdir -p $(CURDIR)/debian/chromeos-theme/usr/lib/gtk-2.0/2.10.0/engines |
| 38 cp $(CURDIR)/libtheme.so $(CURDIR)/debian/chromeos-theme/usr/lib/gtk-2.0
/2.10.0/engines |
| 39 cp $(CURDIR)/resources/gtkrc $(CURDIR)/debian/chromeos-theme/usr/share/t
hemes/theme/gtk-2.0 |
| 40 ln -s /usr/share/themes/theme/gtk-2.0/gtkrc $(CURDIR)/debian/chromeos-th
eme/etc/gtk-2.0/ |
| 41 |
| 42 # Build architecture-dependent files here. |
| 43 binary-arch: install |
| 44 dh_testdir |
| 45 dh_testroot |
| 46 dh_installchangelogs |
| 47 dh_installdocs |
| 48 dh_installexamples |
| 49 dh_installman |
| 50 dh_link |
| 51 dh_strip |
| 52 dh_compress |
| 53 dh_fixperms |
| 54 dh_installdeb |
| 55 dh_shlibdeps |
| 56 dh_gencontrol |
| 57 dh_md5sums |
| 58 dh_builddeb |
| 59 |
| 60 binary: binary-arch |
| 61 |
| 62 .PHONY: build clean install binary-arch binary |
OLD | NEW |