Magellan Linux

Contents of /tags/javaupdate-1_3/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2028 - (show annotations) (download)
Mon Jan 7 11:36:13 2013 UTC (11 years, 3 months ago) by niro
File size: 965 byte(s)
tagged 'javaupdate-1_3'
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 ENVDDIR = /etc/env.d
10
11 all:
12 sed 's:@@SYSCONFDIR@@:$(SYSCONFDIR):' < java-update.envd.in > java-update.envd
13 sed 's:@@VERSION@@:$(VERSION):' < java-update.in > java-update
14
15 install:
16 install -d $(DESTDIR)$(ENVDDIR)
17 install -m 0644 java-update.envd $(DESTDIR)$(ENVDDIR)/20java-update
18
19 install -d $(DESTDIR)$(SBINDIR)
20 install -m 0755 java-update $(DESTDIR)$(SBINDIR)/java-update
21
22 install -d $(DESTDIR)$(SYSCONFDIR)/global
23 install -m 0644 global-classpath.conf $(DESTDIR)$(SYSCONFDIR)/global/global-classpath.conf
24 install -m 0644 eof-classpath.conf $(DESTDIR)$(SYSCONFDIR)/global/eof-classpath.conf
25
26 install -d $(DESTDIR)/$(DOCDIR)
27 cat VERSION | gzip -9 > $(DESTDIR)$(DOCDIR)/VERSION.gz
28 cat ChangeLog | gzip -9 > $(DESTDIR)$(DOCDIR)/ChangeLog.gz
29
30 clean:
31 rm -f java-update.envd
32 rm -f java-update
33
34 .PHONY: all install