File: Makefile.in

package info (click to toggle)
greenwich 0.8.2-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 304 kB
  • ctags: 16
  • sloc: perl: 487; makefile: 72
file content (81 lines) | stat: -rwxr-xr-x 4,153 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Makefile for Greenwich.
# $Id: Makefile.in,v 1.11 2005/09/02 15:08:43 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 \
			build/locale/pl/LC_MESSAGES \
			build/locale/it/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
	msgfmt -o build/locale/pl/LC_MESSAGES/$(name).mo src/po/pl.po
	msgfmt -o build/locale/it/LC_MESSAGES/$(name).mo src/po/it.po
	perl -ne 's!\@PREFIX\@!$(prefix)!g ; print' < src/$(name).pl > build/bin/$(name)

install:
	-mkdir -p	$(DESTDIR)/$(prefix)/bin \
			$(DESTDIR)/$(prefix)/lib/$(name) \
			$(DESTDIR)/$(prefix)/share/$(name) \
			$(DESTDIR)/$(prefix)/share/pixmaps \
			$(DESTDIR)/$(prefix)/share/man/man1 \
			$(DESTDIR)/$(prefix)/share/locale/en_AU/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/en_CA/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/en_GB/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/en_US/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/fr_FR/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/sv_SE/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/pl/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/locale/it/LC_MESSAGES \
			$(DESTDIR)/$(prefix)/share/applications \
			$(DESTDIR)/$(prefix)/share/icons/hicolor/24x24/apps \
			$(DESTDIR)/$(prefix)/share/icons/hicolor/48x48/apps \
			$(DESTDIR)/$(prefix)/share/icons/Bluecurve/48x48/apps \
			$(DESTDIR)/$(prefix)/share/icons/Industrial/48x48/apps

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

	install -m 0644 share/$(name).png				$(DESTDIR)$(prefix)/share/icons/hicolor/48x48/apps/$(name).png
	install -m 0644 share/$(name).png				$(DESTDIR)$(prefix)/share/icons/hicolor/24x24/apps/$(name).png
	install -m 0644 share/bluecurve.png				$(DESTDIR)/$(prefix)/share/icons/Bluecurve/48x48/apps/$(name).png
	install -m 0644 share/industrial.png				$(DESTDIR)/$(prefix)/share/icons/Industrial/48x48/apps/$(name).png

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

	@echo Installation complete: now do 'gconftool-2 --install-schema-file=$(DESTDIR)/$(prefix)/share/$(name)/$(name).schema' to install the GConf schema!

clean:
	rm -rf build Makefile

distclean: clean

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