chiark / gitweb /
Fix build system.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 4 Sep 2018 11:35:11 +0000 (12:35 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 4 Sep 2018 11:35:11 +0000 (12:35 +0100)
Makefile.am
configure.ac [moved from configure.in with 62% similarity]
debian/compat [new file with mode: 0644]
debian/rules
debian/source/format [new file with mode: 0644]

index 2f61c6cfa9c134fac5ae14006922b04a27d7b2c8..fdc761b158bb1d3fd0fcd439fe26878ededb98be 100644 (file)
@@ -1,36 +1,40 @@
-## -*-makefile-*-
-##
-## $Id$
-##
-## Makefile builder
-##
-## (c) 2006 Mark Wooding
-##
+### -*-makefile-*-
+###
+### Makefile builder
+###
+### (c) 2006, 2018 Mark Wooding
+###
 
 
-##----- Licensing notice ----------------------------------------------------
-##
-## This file is part of mm: a simple Mastermind game.
-##
-## mm 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 of the License, or
-## (at your option) any later version.
-## 
-## mm 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 mm; if not, write to the Free Software Foundation,
-## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of mm: a simple Mastermind game.
+###
+### mm 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 of the License, or
+### (at your option) any later version.
+###
+### mm 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 mm; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 
-AUTOMAKE_OPTIONS = foreign
+bin_PROGRAMS            =
+man_MANS                =
+EXTRA_DIST              =
 
 
-bin_PROGRAMS = mm
+LDADD                   = $(mLib_LIBS)
 
 
-man_MANS = mm.6
+bin_PROGRAMS           += mm
+mm_SOURCES              = mm.c
+man_MANS               += mm.6
 
 
-mm_SOURCES = mm.c
+EXTRA_DIST             += debian/changelog debian/compat
+EXTRA_DIST             += debian/control debian/copyright
+EXTRA_DIST             += debian/rules debian/source/format
 
 
-##----- That's all, folks ---------------------------------------------------
+###----- That's all, folks --------------------------------------------------
similarity index 62%
rename from configure.in
rename to configure.ac
index 8199932f57dd76ec799b8e52c77145680a92c161..5a9b57a4d43498b7957c24bc1d1e3aaadd2b7376 100644 (file)
@@ -1,13 +1,11 @@
-dnl -*-fundamental-*-
-dnl
-dnl $Id$
+dnl -*-autoconf-*-
 dnl
 dnl Configuration script for mm
 dnl
 dnl
 dnl Configuration script for mm
 dnl
-dnl (c) 2006 Mark Wooding
+dnl (c) 2006, 2018 Mark Wooding
 dnl
 
 dnl
 
-dnl ----- Licensing notice --------------------------------------------------
+dnl----- Licensing notice ---------------------------------------------------
 dnl
 dnl This file is part of mm: a simple Mastermind game.
 dnl
 dnl
 dnl This file is part of mm: a simple Mastermind game.
 dnl
@@ -15,21 +13,31 @@ dnl mm is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 2 of the License, or
 dnl (at your option) any later version.
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 2 of the License, or
 dnl (at your option) any later version.
-dnl 
+dnl
 dnl mm is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl mm is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
-dnl 
+dnl
 dnl You should have received a copy of the GNU General Public License
 dnl along with mm; if not, write to the Free Software Foundation,
 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 dnl You should have received a copy of the GNU General Public License
 dnl along with mm; if not, write to the Free Software Foundation,
 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-AC_INIT([mm.c])
-AM_INIT_AUTOMAKE([mm], [1.0.0])
+mdw_AUTO_VERSION
+AC_INIT([mm], AUTO_VERSION, [mdw@distorted.org.uk])
+AC_CONFIG_SRCDIR([mm.c])
+AC_CONFIG_AUX_DIR([config])
+AM_INIT_AUTOMAKE([foreign])
+mdw_SILENT_RULES
+
 AC_PROG_CC
 AC_PROG_CC
-mdw_GCC_FLAGS
-mdw_MLIB([2.0.3])
-AC_OUTPUT([Makefile])
+AM_PROG_CC_C_O
+AX_CFLAGS_WARN_ALL
+
+PKG_CHECK_MODULES([mLib], [mLib >= 2.0.3])
+AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS"
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
 
 
-dnl ----- That's all, folks -------------------------------------------------
+dnl----- That's all, folks --------------------------------------------------
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
index 52fafc0940feacae63df0b91dfdc977365880997..0ab4653dd619a59da8d567d8289a12b5e03db3bb 100755 (executable)
@@ -1,45 +1,2 @@
 #! /usr/bin/make -f
 #! /usr/bin/make -f
-
-export DH_COMPAT = 4
-
-build:
-       rm -rf build deb-build
-       mkdir deb-build
-       cd deb-build; ../configure --prefix=/usr
-       make -C deb-build
-       touch build
-
-clean:
-       dh_clean
-       rm -rf deb-build build
-
-install: build
-       dh_clean
-       make -C deb-build install DESTDIR=`pwd`/debian/mm
-
-binary-indep:
-
-binary-arch: install
-       dh_testdir -a
-       dh_testroot -a
-       dh_compress -a
-       dh_installdocs -a
-       dh_strip -a
-       dh_shlibdeps -a
-       dh_gencontrol -a
-       dh_fixperms -a
-       dh_installdeb -a
-       dh_md5sums -a
-       dh_builddeb -a
-
-binary: binary-indep binary-arch
-
-source:
-       rm -rf deb-build/*.tar.gz deb-build/=deb=
-       make -C deb-build dist
-       mkdir deb-build/=deb=
-       cd deb-build/=deb=; tar xvfz ../*.tar.gz
-       d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
-       rm -rf deb-build/=deb=
-
-.PHONY: binary binary-arch binary-indep clean install source 
+%:; dh $@ --parallel -BDebian/build
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..d3827e7
--- /dev/null
@@ -0,0 +1 @@
+1.0