chiark / gitweb /
Documentation for usual.mk.in
[subdirmk.git] / configure.ac
index 8b248a438a4a7d75875948378a3e2cbd10da4166..88516fbacb3c26a5d1a1f2d811052f83f110cb7e 100644 (file)
@@ -1,26 +1,8 @@
 dnl -*-autoconf-*-
-dnl
-dnl Configuration script for toy project
-dnl
-dnl (c) 2019 Mark Wooding
-dnl
-
-dnl----- Licensing notice ---------------------------------------------------
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU Library General Public License as
-dnl published by the Free Software Foundation; either version 2 of the
-dnl License, or (at your option) any later version.
-dnl
-dnl This program 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 Library General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU Library General Public
-dnl License along with this program; if not, write to the Free
-dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-dnl MA 02111-1307, USA.
+dnl subdirmk example - configuration script
+dnl  Copyright 2019 Mark Wooding
+dnl  Copyright 2019 Ian Jackson
+dnl SPDX-License-Identifier: LGPL-2.0-or-later
 
 AC_INIT([mktoy], [0.9.0], [mdw@distorted.org.uk])
 AC_CONFIG_SRCDIR([src/toy.c])
@@ -32,15 +14,10 @@ AC_PROG_CC
 INCLUDES=
 AC_SUBST(INCLUDES)
 
-m4_define([SUBDIRSMK_SUBDIRS],
-[m4_map_args_w([$1],[_SUBDIRSMK_SUBDIR(],[/)])])dnl
-
-m4_define([_SUBDIRSMK_SUBDIR],
-[AC_CONFIG_FILES([$1Subdir.mk:$1Subdir.mk.tmp])])dnl
-dnl ,[subdirsmk_need_prep]
-dnl [AC_CONFIG_COMMANDS([$1Subdir.mk],)
+m4_include([subdirmk/subdirmk.ac])
 
-SUBDIRSMK_SUBDIRS([lib lib/t src])
+SUBDIRMK_SUBDIRS([lib])
+SUBDIRMK_SUBDIRS([lib/t src])
 
 AC_OUTPUT