forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.new
32 lines (27 loc) · 933 Bytes
/
Makefile.new
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
# $Id$
NAME=podbrowser
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
DATADIR=$(PREFIX)/share
ICONDIR=$(DATADIR)/icons/hicolor/48x48/apps
MANDIR=$(DATADIR)/man/man1
DESTDIR=
all: podbrowser
podbrowser:
@mkdir -p build
perl -ne 's!\@PREFIX\@!$(PREFIX)!g ; s!\@LIBDIR\@!$(LIBDIR)!g ; print' < $(NAME).pl > build/$(NAME)
pod2man $(NAME).pl | gzip -c > build/$(NAME).1.gz
install:
mkdir -p $(DESTDIR)/$(BINDIR) \
$(DESTDIR)/$(DATADIR)/$(NAME) \
$(DESTDIR)/$(DATADIR)/applications \
$(DESTDIR)/$(ICONDIR) \
$(DESTDIR)/$(MANDIR)
install -m 0644 $(NAME).glade $(DESTDIR)/$(DATADIR)/$(NAME)/
install -m 0644 $(NAME).png $(DESTDIR)/$(ICONDIR)/
install -m 0644 $(NAME).desktop $(DESTDIR)/$(DATADIR)/applications/
install -m 0644 build/$(NAME).1.gz $(DESTDIR)/$(MANDIR)/
install -m 0755 build/$(NAME) $(DESTDIR)/$(BINDIR)/$(NAME)
install -m 0755 html2ps-$(NAME) $(DESTDIR)/$(BINDIR)/html2ps-$(NAME)
clean:
rm -rf build