Magellan Linux

Contents of /tags/javaupdate-1_0/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1769 - (show annotations) (download)
Sat Feb 18 19:38:28 2012 UTC (12 years, 2 months ago) by niro
File size: 741 byte(s)
tagged 'javaupdate-1_0'
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.sh > 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