chiark / gitweb /
Catacomb: Make arrangements for running convert in `cat' subdir
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Dec 2019 13:57:49 +0000 (13:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 1 Jan 2020 23:48:15 +0000 (23:48 +0000)
This arranges that each file from catacomb-import-update --convert is
a possible target in cat/, and can be relied on in this and other
makefiles.

None of them are used yet, although we do wire the building into
`all'.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cat/.gitignore [new file with mode: 0644]
cat/Dir.sd.mk [new file with mode: 0644]
configure
configure.ac

diff --git a/cat/.gitignore b/cat/.gitignore
new file mode 100644 (file)
index 0000000..cf29261
--- /dev/null
@@ -0,0 +1,4 @@
+*.[ch]
+*.in
+*.new
+secnet-import.auto.mk.compare
diff --git a/cat/Dir.sd.mk b/cat/Dir.sd.mk
new file mode 100644 (file)
index 0000000..5d7c66f
--- /dev/null
@@ -0,0 +1,32 @@
+# This file is part of secnet.
+# See README for full list of copyright holders.
+#
+# secnet 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 3 of the License, or
+# (at your option) any later version.
+# 
+# secnet 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
+# version 3 along with secnet; if not, see
+# https://www.gnu.org/licenses/gpl.html.
+
+include &~catacomb-import/secnet-import.auto.mk
+
+&CATS = $(addprefix &/, $(CATACOMB_IMPORT_RECIPS))
+
+&TARGETS += &$CATS
+
+.SECONDARY: &cat-converted
+
+&$CATS:        &cat-converted
+       @:
+
+&cat-converted: &~catacomb-import-update
+       &~./catacomb-import-update --convert
+
+&cat-converted: $(addprefix &~catacomb-import/, $(CATACOMB_IMPORT_DONORS))
index 43de16e885044aaede33ad0150f872308ca93a1a..012b387fce09c6f6d5f9a57fb16ef3dbe4c7108c 100755 (executable)
--- a/configure
+++ b/configure
@@ -2153,6 +2153,10 @@ ac_config_headers="$ac_config_headers config.h"
   ac_config_files="$ac_config_files base91s/Dir.mk:base91s/Dir.mk.tmp"
 
 
+  subdirmk_subdirs="$subdirmk_subdirs 'cat/'"
+  ac_config_files="$ac_config_files cat/Dir.mk:cat/Dir.mk.tmp"
+
+
 
 
 
@@ -4892,6 +4896,7 @@ do
     "mtest/Dir.mk") CONFIG_FILES="$CONFIG_FILES mtest/Dir.mk:mtest/Dir.mk.tmp" ;;
     "stest/Dir.mk") CONFIG_FILES="$CONFIG_FILES stest/Dir.mk:stest/Dir.mk.tmp" ;;
     "base91s/Dir.mk") CONFIG_FILES="$CONFIG_FILES base91s/Dir.mk:base91s/Dir.mk.tmp" ;;
+    "cat/Dir.mk") CONFIG_FILES="$CONFIG_FILES cat/Dir.mk:cat/Dir.mk.tmp" ;;
     "common.make") CONFIG_FILES="$CONFIG_FILES common.make:common.make.in" ;;
     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
index 674ed3642da6ef96a0e5cd27b171fef83af451fa..2c38f27450853262940d5e6e55a78fc5eb843bc5 100644 (file)
@@ -25,7 +25,7 @@ AC_INIT(secnet,0.1.18+,secnet@chiark.greenend.org.uk)
 AC_CONFIG_SRCDIR(secnet.c)
 AC_CONFIG_HEADER(config.h)
 
-SUBDIRMK_SUBDIRS([test-example mtest stest base91s])
+SUBDIRMK_SUBDIRS([test-example mtest stest base91s cat])
 
 AC_PREREQ(2.50)
 AC_REVISION($Id: configure.in,v 1.4 2002/09/09 22:05:02 steve Exp $)