Description: Upstream changes introduced in version 0.2.0-1
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 ats-lang-anairiats (0.2.0-1) unstable; urgency=low
 .
   * New upstream release
   * Modifying example Makefiles to build, test, and not clean.
   * Working around build system bug to do with Makefile_main_temp.
 .
 The person named in the Author field signed this changelog entry.
Author: Matthew Danish <mrd@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- ats-lang-anairiats-0.2.0.orig/.bootstrap_makefile
+++ ats-lang-anairiats-0.2.0/.bootstrap_makefile
@@ -63,7 +63,7 @@ ATSRUNTIME="$(ATSHOME)"/ccomp/runtime
 
 ######
 
-CC=gcc -Wall
+CC=gcc
 #CC=gcc -fsigned-char // should be OK as well
 #CC=gcc -funsigned-char // should be OK as well
 #CCFLAG=-I"$(ATSHOME)" -I$(ATSRUNTIME) -O2
--- /dev/null
+++ ats-lang-anairiats-0.2.0/Makefile_main_temp
@@ -0,0 +1,176 @@
+LIBGLIB20=
+LIBGLIB20=1
+LIBGTK20=
+LIBGTK20=1
+LIBSDL=
+#########################################################################
+##                                                                     ##
+##                         Applied Type System                         ##
+##                                                                     ##
+##                              Hongwei Xi                             ##
+##                                                                     ##
+#########################################################################
+
+##
+## ATS/Anairiats - Unleashing the Potential of Types!
+##
+## Copyright (C) 2002-2008 Hongwei Xi.
+##
+## ATS is  free software;  you can redistribute it and/or modify it under
+## the  terms of the  GNU General Public License as published by the Free
+## Software Foundation; either version 2.1, or (at your option) any later
+## version.
+##
+## ATS is distributed in the hope that it will be useful, but WITHOUT ANY
+## WARRANTY; without  even  the  implied  warranty  of MERCHANTABILITY or
+## FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License
+## for more details.
+##
+## You  should  have  received  a  copy of the GNU General Public License
+## along  with  ATS;  see  the  file  COPYING.  If not, write to the Free
+## Software Foundation, 51  Franklin  Street,  Fifth  Floor,  Boston,  MA
+## 02110-1301, USA.
+##
+
+######
+
+GCC=gcc
+RANLIB=ranlib
+
+PWD=$(shell pwd)
+ifdef ATSHOME
+  ATSHOMEDEF=1
+else
+  ATSHOMEDEF=0
+  export ATSHOME=$(PWD)
+endif
+
+######
+
+all: \
+  atscheck \
+  config.h \
+  atsopt1 \
+  bin/atscc \
+  bin/atslib \
+  libfiles libfiles_mt \
+  bin/atslex \
+  ccomp/runtime/GCATS/gc.o \
+  ccomp/runtime/GCATS/gc_mt.o \
+  atsopt1_gc \
+  contrib
+	echo "ATS/Anairiats has been built up successfully!"
+	echo "The value of ATSHOME for this build is \"$(ATSHOME)\"."
+
+###### system configuration ######
+
+atscheck::
+	echo "$(ATSHOME)" > .ATSHOME
+ifeq ($(ATSHOMEDEF),1)
+	/bin/bash -r ./ATSHOME_check.sh
+endif
+ifdef ATSHOMERELOC
+	echo "$(ATSHOMERELOC)" > .ATSHOMERELOC
+endif
+
+config.h: configure ; ./configure
+
+###### bootstrap/Makefile ######
+
+bootstrap1/Makefile:
+	$(GCC) -D_BOOTSTRAP1 -E -x c .bootstrap_header \
+      | cat - .bootstrap_makefile > bootstrap1/Makefile
+
+###### w/o GC ######
+
+atsopt1:: bootstrap1/Makefile; cd bootstrap1; make atsopt; mv atsopt "$(ATSHOME)"/bin
+
+###### with GC ######
+
+atsopt1_gc:: bootstrap1/Makefile; cd bootstrap1; make atsopt_gc; mv atsopt "$(ATSHOME)"/bin
+
+###### contrib libraries ######
+
+contrib::
+ifeq ($(LIBGLIB20),1)
+	cd contrib/glib; make atsctrb_glib.o; make clean
+endif
+ifeq ($(LIBGTK20),1)
+	cd contrib/GTK; make atsctrb_GTK.o; make clean
+endif
+
+###### some toplevel commands ######
+
+bin/atscc bin/atslib:
+	cd utils/scripts; make atscc; mv atscc "$(ATSHOME)"/bin
+	cd utils/scripts; make atslib; mv atslib "$(ATSHOME)"/bin
+	cd utils/scripts; make clean
+
+###### library ######
+
+# [gcc -E] for preprocessing
+.libfiles_local: ; $(GCC) -E -P -x c .libfiles -o .libfiles_local
+libfiles:: .libfiles_local
+	"$(ATSHOME)"/bin/atslib $(ATS_TERMINATION_CHECK) -O2 --libats
+	"$(ATSHOME)"/bin/atslib $(ATS_TERMINATION_CHECK) -O2 --libats_smlbas
+
+.libfiles_mt_local: ; $(GCC) -E -P -x c .libfiles_mt -o .libfiles_mt_local
+libfiles_mt:: .libfiles_mt_local
+	"$(ATSHOME)"/bin/atslib $(ATS_TERMINATION_CHECK) -D_ATS_MULTITHREAD -O2 --libats_mt
+
+###### a lexer for ATS ######
+
+bin/atslex:
+	cd utils/atslex; make atslex; mv atslex "$(ATSHOME)"/bin
+	cd utils/atslex; make clean
+
+###### GC runtime ######
+
+ccomp/runtime/GCATS/gc.o:
+	cd ccomp/runtime/GCATS; make gc.o; make clean
+
+ccomp/runtime/GCATS/gc_mt.o:
+	cd ccomp/runtime/GCATS; make gc_mt.o; make clean
+
+######
+
+clean::
+	rm -f bootstrap0/*.o
+	rm -f bootstrap1/*.o
+	cd utils/scripts; make clean
+	cd utils/atslex; make clean
+	cd ccomp/runtime/GCATS; make clean
+
+cleanall:: clean
+	rm -f config.h
+	rm -f .libfiles_local
+	rm -f .libfiles_mt_local
+	rm -f bin/atsopt bin/atscc bin/atslib bin/atslex
+	rm -f ccomp/lib/libats.a
+	rm -f ccomp/lib/libats_mt.a
+	rm -f ccomp/lib/libats_lex.a
+	rm -f ccomp/lib/libats_smlbas.a
+	rm -f ccomp/lib/output/*
+	rm -f ccomp/lib64/libats.a
+	rm -f ccomp/lib64/libats_mt.a
+	rm -f ccomp/lib64/libats_lex.a
+	rm -f ccomp/lib64/libats_smlbas.a
+	rm -f ccomp/lib64/output/*
+	rm -f .*~ *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
+	rm -f bootstrap1/Makefile bootstrap1/*.o
+	cd utils/scripts; make clean
+	cd utils/atslex; make clean
+	cd ccomp/runtime/GCATS; make cleanall
+	rm -f contrib/glib/atsctrb_glib.o
+	rm -f contrib/cairo/atsctrb_cairo.o
+	rm -f contrib/pango/atsctrb_pango.o
+	rm -f contrib/X11/atsctrb_X11.o
+	rm -f contrib/GTK/atsctrb_GTK.o
+	rm -f contrib/GL/atsctrb_GL.o
+	rm -f contrib/SDL/atsctrb_SDL.o
+
+######
+#
+# end of [Makefile_dist_main]
+#
+######
--- /dev/null
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/atshome.mk
@@ -0,0 +1,2 @@
+ATSHOME = /usr/lib/ats-anairiats-0.2.0
+export ATSHOME
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/cairo/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/cairo/Makefile
@@ -14,7 +14,7 @@ GTKFLAGS=`pkg-config gtk+-2.0 --cflags -
 ######
 
 .PHONY: all
-all: checkall
+all: compall
 
 ######
 
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/MULTICORE/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/MULTICORE/Makefile
@@ -9,7 +9,7 @@ ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
 ######
 
 .PHONY: all
-all:: checkall
+all:: compall
 
 ######
 
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/OpenGL/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/OpenGL/Makefile
@@ -4,10 +4,12 @@
 #
 #
 
+include ../atshome.mk
+
 .PHONY: all
 all:  compall
 
-ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
+ATSCC=atscc
 ATSCTRB="$(ATSHOME)"/contrib/GL/atsctrb_GL.o
 
 ######
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/MISC/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/MISC/Makefile
@@ -5,7 +5,7 @@
 ######
 
 .PHONY: all
-all: checkall
+all: compall
 
 ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
 ATSOPT=$(or $(ATSHOME), "/usr")/bin/atsopt
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/MISC/Twentyfour/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/MISC/Twentyfour/Makefile
@@ -16,7 +16,7 @@ ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
 ######
 
 .PHONY: all
-all: checkall
+all: compall
 
 ######
 
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/MISC/HttpServer/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/MISC/HttpServer/Makefile
@@ -11,7 +11,7 @@ ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
 ######
 
 .PHONY: all
-all:: checkall
+all:: compall
 
 checkall: compall cleanall
 compall:: server server2
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/GTK/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/GTK/Makefile
@@ -6,14 +6,14 @@
 
 ######
 
-ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
-ATSOPT=$(or $(ATSHOME), "/usr")/bin/atsopt
+ATSCC=atscc
+ATSOPT=atsopt
 GTKFLAGS=`pkg-config gtk+-2.0 --cflags --libs`
 
 ######
 
 .PHONY: all
-all: checkall
+all: compall
 
 ######
 
@@ -30,6 +30,7 @@ compall:: \
 #   cd $ATSHOME/contrib/GTK; make atsctrb_GTK.o
 # if "atsctrb_GTK.o" is not available
 #
+include ../atshome.mk
 LIBATSGTK=$(ATSHOME)/contrib/GTK/atsctrb_GTK.o
 GameOf24: GameOf24.dats
 	$(ATSCC) -D_ATS_GCATS -o $@ $(GTKFLAGS) GameOf24.dats $(LIBATSGTK)
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/INTRO/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/INTRO/Makefile
@@ -12,7 +12,7 @@ ATSOPT=$(or $(ATSHOME), "/usr")/bin/atso
 ######
 
 .PHONY: all
-all: checkall
+all: compall
 
 ######
 
--- ats-lang-anairiats-0.2.0.orig/doc/EXAMPLE/KernighanRitchie/Makefile
+++ ats-lang-anairiats-0.2.0/doc/EXAMPLE/KernighanRitchie/Makefile
@@ -1,7 +1,7 @@
 ######
 
 .PHONY: all
-all:: checkall
+all:: compall
 
 ######
 
