Commit fde18db7 authored by Clement Vasseur's avatar Clement Vasseur
Browse files

2004-06-25 Clement Vasseur <clement.vasseur@lrde.epita.fr>

        Introduce a "make deb" rule for building a package for Debian.

        * debian/control, debian/compat, debian/changelog, debian/copyright,
        * debian/docs, debian/rules, debian/info: New. Debian files.
        * debian/Makefile.am: New. Tell how to generate the package.
        * Makefile.am: Add debian to SUBDIRS and the `deb' rule.
        * configure.ac: Add debian/Makefile.
parent d917e492
2004-06-25 Clement Vasseur <clement.vasseur@lrde.epita.fr>
Introduce a "make deb" rule for building a package for Debian.
* debian/control, debian/compat, debian/changelog, debian/copyright,
* debian/docs, debian/rules, debian/info: New. Debian files.
* debian/Makefile.am: New. Tell how to generate the package.
* Makefile.am: Add debian to SUBDIRS and the `deb' rule.
* configure.ac: Add debian/Makefile.
2004-06-18 Akim Demaille <akim@epita.fr> 2004-06-18 Akim Demaille <akim@epita.fr>
* configure.ac (HAPPY): Use AM_PROG_MISSING so that happy is not * configure.ac (HAPPY): Use AM_PROG_MISSING so that happy is not
......
...@@ -15,8 +15,11 @@ ...@@ -15,8 +15,11 @@
# the Free Software Foundation, 59 Temple Place - Suite 330, Boston, # the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA. # MA 02111-1307, USA.
SUBDIRS = src doc SUBDIRS = src doc debian
install-epita: install-epita:
$(MAKE) -C src bsd $(MAKE) -C src bsd
scp -C src/havm dolar:bin scp -C src/havm dolar:bin
deb:
$(MAKE) -C debian deb
...@@ -30,5 +30,6 @@ AC_CONFIG_FILES([ ...@@ -30,5 +30,6 @@ AC_CONFIG_FILES([
Makefile Makefile
src/Config.hs src/Config.hs
src/Makefile src/Makefile
debian/Makefile
doc/Makefile]) doc/Makefile])
AC_OUTPUT AC_OUTPUT
distdir = $(PACKAGE)-$(VERSION)
DIST_ARCHIVE = $(distdir).tar.gz
DEB_VERSION = $(VERSION)-$$Rev$$
EXTRA_DIST = \
changelog \
compat \
control \
copyright \
docs \
info \
rules
CLEANFILES = \
$(DIST_ARCHIVE) \
$(PACKAGE)_$(VERSION)*.{changes,deb,dsc,tar.gz}
$(top_srcdir)/$(DIST_ARCHIVE):
$(MAKE) -C $(top_srcdir) dist
deb: $(top_srcdir)/$(DIST_ARCHIVE)
V=`echo '$(DEB_VERSION)' | sed 's/$$Rev: \([0-9]*\) $$$$/\1/'` && \
sed -i "s/^$(PACKAGE) (.*) unstable;/$(PACKAGE) ($$V) unstable;/" \
changelog
rm -rf $(distdir) && tar xvzf $(top_srcdir)/$(DIST_ARCHIVE)
cd $(distdir) && dpkg-buildpackage -rfakeroot
havm (0.21a-1) unstable; urgency=low
* Initial Release.
-- Clement Vasseur <clement.vasseur@lrde.epita.fr> Sun, 13 Jun 2004 15:26:52 +0200
Source: havm
Section: devel
Priority: optional
Maintainer: Clement Vasseur <clement.vasseur@lrde.epita.fr>
Build-Depends: debhelper (>= 4.0.0), ghc6
Standards-Version: 3.6.0
Package: havm
Architecture: any
Depends: ${shlibs:Depends}
Provides: havm
Description: The Tree Virtual Machine
HAVM is a virtual machine designed to execute simple register based
high level intermediate code. It is based on the intermediate
representations ("canonicalized" or not) defined by Andrew Appel in his
"Modern Compiler Implementation". It is nevertheless generic enough so
that any (student) compiler could target its intermediate language to
HAVM's language.
.
Its features are:
- two object types, integers and pointers
- tree-like source language (two way conditional jumps, arbitrarily
nested subroutines calls, etc.)
- threaded source language (one way conditional jumps, etc.)
- a runtime library comparable to SPIM's
- a debugging mode displaying the instructions being executed
This package was debianized by Clement Vasseur <clement.vasseur@lrde.epita.fr>
on Sun, 13 Jun 2004 15:26:52 +0200.
It was downloaded from: http://gforge.lrde.epita.fr
Upstream Author(s): Robert Anisko <robert@lrde.epita.fr>
Akim Demaille <akim@lrde.epita.fr>
This software is copyright (C) 2003, 2004 Laboratoire de Recherche et
Dveloppement de l'EPITA.
You are free to distribute this software under the terms of
the GNU General Public License.
On Debian systems, the complete text of the GNU General Public
License can be found in the file `/usr/share/common-licenses/GPL'.
AUTHORS
NEWS
README
TODO
doc/havm.info
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE) && $(MAKE) check
#/usr/bin/docbook-to-man debian/havm.sgml > havm.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/havm.
$(MAKE) install DESTDIR=$(CURDIR)/debian/havm
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment