File: Makefile

package info (click to toggle)
greenwich 0.5.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 208 kB
  • ctags: 94
  • sloc: perl: 1,434; makefile: 77
file content (41 lines) | stat: -rw-r--r-- 1,187 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
# Makefile for Greenwich 0.5.0
# $Id: Makefile,v 1.4 2003/04/10 09:45:35 jodrell Exp $

PREFIX=debian/greenwich/usr
LIBDIR=$(PREFIX)/share/perl5
MANDIR=$(PREFIX)/share/man/man1
BINDIR=$(PREFIX)/bin
PIXMAPDIR=$(PREFIX)/share/pixmaps
DESKTOPDIR=$(PREFIX)/share/gnome/apps/Internet/

all: greenwich

prereq:
	perl -MCPAN -e 'install Gnome ; install Locale::Maketext'

greenwich:
	mkdir build
	perl -ne 's!\@LIBDIR\@!/usr/share/perl5!g ; print' < src/greenwich > build/greenwich
	perl -ne 's!\@PIXMAPDIR\@!/usr/share/pixmaps!g ; print' < src/greenwich.desktop > build/greenwich.desktop

install:
	mkdir -p $(MANDIR)
	mkdir -p $(BINDIR)
	mkdir -p $(PIXMAPDIR)
	mkdir -p $(DESKTOPDIR)
	mkdir -p $(LIBDIR)/Greenwich

	install -m 0644 src/greenwich.1 $(MANDIR)
	install -m 0755 build/greenwich $(BINDIR)
	install -m 0644 src/greenwich.xpm $(PIXMAPDIR)
	install -m 0644 src/redhat-whois.png $(PIXMAPDIR)
	install -m 0644 build/greenwich.desktop $(DESKTOPDIR)
	cp -Rvp lib/* $(LIBDIR)/Greenwich

clean:
	rm -rf build/

uninstall:
	rm -f $(MANDIR)/greenwich.1 $(BINDIR)/greenwich $(PIXMAPDIR)/greenwich.png $(PIXMAPDIR)/redhat-whois.png $(DESKTOPDIR)/greenwich.desktop
	rm -rf $(LIBDIR)/Greenwich