~ubuntu-branches/ubuntu/wily/curtain/wily-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
## Process this file with automake to produce Makefile.in

SUBDIRS = \
	desktop                        \
	docs                           \
	po                             \
	src 

curtaindocdir = ${prefix}/share/doc/curtain
curtaindoc_DATA =                      \
	README                         \
	AUTHORS                        \
	ChangeLog                      \
	NEWS

autogen_FILE = autogen.sh

@INTLTOOL_DESKTOP_RULE@

INTLTOOL_FILES = intltool-extract.in   \
	intltool-merge.in              \
	intltool-update.in

EXTRA_DIST = $(curtaindoc_DATA)        \
	$(INTLTOOL_FILES)              \
	$(autogen_FILE)

DISTCLEANFILES = intltool-extract      \
	intltool-merge                 \
	intltool-update                \
	po/.intltool-merge-cache


if !PLATFORM_WIN32

deb:
	@if test -s "`which debuild`"; then                                                \
		debuild -us -uc -b;                                                        \
		mv ../$(PACKAGE_NAME)_$(PACKAGE_VERSION)-*_*.deb .;                        \
	else                                                                               \
		echo "You need to install the debian package 'devscripts'";                \
		exit 1;                                                                    \
	fi	
endif
	
update-po:
	(cd po; $(MAKE) update-po)

clean:
	@for i in $(SUBDIRS); do       \
        echo "Clearing in $$i...";     \
        (cd $$i; $(MAKE) clean); done
	rm -fr debian/tmp
	rm -fr debian/files
	rm -fr debian/curtain
	rm -f  debian/debhelper.log
	rm -fr debian/substvars
	rm -f  curtain/config.log

# Remove doc directory on uninstall
uninstall-local:
	rm -fr $(curtaindocdir)
	rm -fr $(uidir)
	rm -fr $(datadir)/curtain