File: Makefile.in

package info (click to toggle)
greenwich 0.8.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 216 kB
  • ctags: 17
  • sloc: perl: 486; makefile: 58
file content (64 lines) | stat: -rw-r--r-- 2,782 bytes parent folder | download
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
# Makefile for Greenwich.
# $Id: Makefile.in,v 1.7 2005/06/17 10:57:46 jodrell Exp $

prefix=@PREFIX@
name=greenwich

all: build

build:
	mkdir -p	build \
			build/bin \
			build/locale/en/LC_MESSAGES \
			build/locale/fr_FR/LC_MESSAGES \
			build/locale/sv_SE/LC_MESSAGES
	msgfmt -o build/locale/en/LC_MESSAGES/$(name).mo src/po/en.po
	msgfmt -o build/locale/fr_FR/LC_MESSAGES/$(name).mo src/po/fr.po
	msgfmt -o build/locale/sv_SE/LC_MESSAGES/$(name).mo src/po/sv.po
	perl -ne 's!\@PREFIX\@!$(prefix)!g ; print' < src/$(name).pl > build/bin/$(name)

install:
	-mkdir -p	$(prefix)/bin \
			$(prefix)/lib/$(name) \
			$(prefix)/share/$(name) \
			$(prefix)/share/pixmaps \
			$(prefix)/share/man/man1 \
			$(prefix)/share/locale/en_AU/LC_MESSAGES \
			$(prefix)/share/locale/en_CA/LC_MESSAGES \
			$(prefix)/share/locale/en_GB/LC_MESSAGES \
			$(prefix)/share/locale/en_US/LC_MESSAGES \
			$(prefix)/share/locale/fr_FR/LC_MESSAGES \
			$(prefix)/share/locale/sv_SE/LC_MESSAGES \
			$(prefix)/share/applications

	install -m 0755 build/bin/$(name) $(prefix)/bin/
	install -m 0755 lib/WhoisMap.pm $(prefix)/lib/$(name)/

	install -m 0644 share/$(name).png $(prefix)/share/pixmaps/
	if [ -d $(prefix)/share/icons/Bluecurve ];  then install -m 0644 share/bluecurve.png  $(prefix)/share/icons/Bluecurve/48x48/apps/$(name).png  ; fi
	if [ -d $(prefix)/share/icons/Industrial ]; then install -m 0644 share/industrial.png $(prefix)/share/icons/Industrial/48x48/apps/$(name).png ; fi

	install -m 0644 share/$(name).glade	$(prefix)/share/$(name)/
	install -m 0644 share/$(name).desktop	$(prefix)/share/applications/
	install -m 0644 share/$(name).schema	$(prefix)/share/$(name)/
	install -m 0644 share/$(name).1		$(prefix)/share/man/man1/
	install -m 0644 build/locale/en/LC_MESSAGES/$(name).mo $(prefix)/share/locale/en_AU/LC_MESSAGES/$(name).mo
	install -m 0644 build/locale/en/LC_MESSAGES/$(name).mo $(prefix)/share/locale/en_CA/LC_MESSAGES/$(name).mo
	install -m 0644 build/locale/en/LC_MESSAGES/$(name).mo $(prefix)/share/locale/en_GB/LC_MESSAGES/$(name).mo
	install -m 0644 build/locale/en/LC_MESSAGES/$(name).mo $(prefix)/share/locale/en_US/LC_MESSAGES/$(name).mo
	install -m 0644 build/locale/fr_FR/LC_MESSAGES/$(name).mo $(prefix)/share/locale/fr_FR/LC_MESSAGES/$(name).mo
	install -m 0644 build/locale/sv_SE/LC_MESSAGES/$(name).mo $(prefix)/share/locale/sv_SE/LC_MESSAGES/$(name).mo

	gconftool-2 --install-schema-file=share/$(name).schema
clean:
	rm -rf build Makefile

uninstall:
	rm -f $(prefix)/bin/$(name)
	rm -f $(prefix)/share/man/man1/$(name).1
	rm -f $(prefix)/share/gnome/apps/$(name).desktop
	rm -f $(prefix)/share/pixmaps/$(name).png
	rm -rf $(prefix)/lib/$(name)
	rm -rf $(prefix)/share/$(name)/
	find $(prefix)/share/locale -print | grep -i $(name).mo | xargs rm -rf