Magellan Linux

Contents of /trunk/java-update/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2018 - (show annotations) (download)
Mon Jan 7 11:27:04 2013 UTC (11 years, 3 months ago) by niro
File size: 741 byte(s)
-renamed java-update.sh to java-update.in
1 # java-update
2 # $Id$
3
4 VERSION=$(shell cat VERSION)
5
6 SYSCONFDIR = etc/java
7 DOCDIR = usr/share/doc/java-update-$(VERSION)
8 SBINDIR = usr/sbin
9
10 all:
11 sed 's:@@VERSION@@:$(VERSION):' < java-update.in > java-update
12
13 install:
14 install -d $(DESTDIR)/$(SBINDIR)
15 install -m 0755 java-update $(DESTDIR)/$(SBINDIR)/java-update
16
17 install -d $(DESTDIR)/$(SYSCONFDIR)/global
18 install -m 0644 global-classpath.conf $(DESTDIR)/$(SYSCONFDIR)/global/global-classpath.conf
19 install -m 0644 eof-classpath.conf $(DESTDIR)/$(SYSCONFDIR)/global/eof-classpath.conf
20
21 install -d $(DESTDIR)/$(DOCDIR)
22 cat VERSION | gzip -9 > $(DESTDIR)/$(DOCDIR)/VERSION.gz
23 cat ChangeLog | gzip -9 > $(DESTDIR)/$(DOCDIR)/ChangeLog.gz
24
25 clean:
26 rm -f java-update
27
28 .PHONY: all install