2 # debian/rules for java-package
4 # Uncomment this to turn on verbose mode.
7 # Extract source package version number from changelog
8 VERSION := $(shell head -n 1 $(CURDIR)/debian/changelog | sed 's/.*(//;s/).*//')
9 B := $(CURDIR)/debian/java-package
15 # Add here commands to compile the indep part of the package.
16 sed s/@VERSION@/$(VERSION)/ make-jpkg > make-jpkg.out
22 rm -f build-stamp SUPPORTED make-jpkg.out debian/semantic.cache
31 install -m 755 make-jpkg.out $(B)/usr/bin/make-jpkg
32 cp lib/*.sh lib/*-common $(B)/usr/share/java-package/
33 for dir in $(wildcard oracle-j2*); do \
34 cp -a $$dir $(B)/usr/share/java-package/; \
36 find $(B) -type d -name .svn | xargs -r rm -r
39 echo "java-package currently supports the following binary packages:" > SUPPORTED
41 echo "(This list is automatically generated, do not edit)" >> SUPPORTED
43 grep -h "SUPPORTED$$" $(wildcard $(CURDIR)/lib/*-*.sh) | sed 's/"//g;s/).*//' >> SUPPORTED
51 binary-indep: build install
56 dh_installman make-jpkg.1
68 .PHONY: build clean binary-indep binary install