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 33 34 35
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2004 Michael Koch <konqueror@gmx.de>
DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
# i386 is not supported
ifneq (,$(findstring $(DEB_BUILD_GNU_CPU),i386))
DEB_BUILD_GNU_TYPE=i486-gnu-linux
endif
ifneq (,$(findstring $(DEB_HOST_GNU_CPU),i386))
DEB_HOST_GNU_TYPE=i486-gnu-linux
endif
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
# Clean classes.zip.
clean::
rm -f $(CURDIR)/lib/classes.zip
# We dont wanna provide jni.h.
install/jamvm::
rm -f $(CURDIR)/debian/tmp/usr/include/jni.h
DEB_CONFIGURE_EXTRA_FLAGS := \
--libdir=/usr/lib/jamvm \
--with-classpath-install-dir=/usr
DEB_DESTDIR := "$(CURDIR)/debian/tmp"
DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp --fail-missing
DEB_DH_MAKESHLIBS_ARGS := --exclude=/usr/lib/jamvm
|