sema: New program for hacking with semaphores.
[misc] / Makefile.am
index f660e70..2521b3d 100644 (file)
@@ -1,6 +1,6 @@
 ### -*-makefile-*-
 ###
-### Build script for nsict-utils
+### Build script for distorted-utils
 ###
 ### (c) 2008 Mark Wooding
 ###
@@ -58,7 +58,7 @@ dist_man_MANS         += getpass.1
 ## xtitle
 bin_PROGRAMS           += xtitle
 xtitle_SOURCES          = xtitle.c
-## !UNDOCUMENTED
+dist_man_MANS          += xtitle.1
 
 ## pause
 if HAVE_MLIB
@@ -110,12 +110,15 @@ gorp_LDADD                 = $(catacomb_LIBS)
 dist_man_MANS          += gorp.1
 endif
 
-## qmail-checkspam
-if HAVE_LIBSPAMC
-sbin_PROGRAMS          += qmail-checkspam
-qmail_checkspam_SOURCES         = qmail-checkspam.c
-qmail_checkspam_LDADD   = -lspamc
-dist_man_MANS          += qmail-checkspam.8
+## sema
+if HAVE_MLIB
+bin_PROGRAMS           += sema
+sema_SOURCES            = sema.c
+sema_SOURCES           += fence.c fence.h
+sema_SOURCES           += timemax.cc timemax.h
+sema_LDADD              = $(mLib_LIBS)
+sema_LINK               = $(LINK) # don't need C++ libraries here
+dist_man_MANS          += sema.1
 endif
 
 ## cdb tools
@@ -130,11 +133,13 @@ endif
 
 ## x86 model identification
 if X86
+if HAVE_MLIB
 bin_PROGRAMS           += x86-model
 x86_model_SOURCES       = x86-model.c
 x86_model_LDADD                 = $(mLib_LIBS)
 dist_man_MANS          += x86-model.1
 endif
+endif
 
 ###--------------------------------------------------------------------------
 ### Tools in scripts.
@@ -186,6 +191,12 @@ hush.1: hush.1.in Makefile
        $(SUBST) $(srcdir)/hush.1.in >$@.new $(SUBSTITUTIONS) && \
                mv $@.new $@
 
+dist_bin_SCRIPTS       += with-umask
+dist_man_MANS          += with-umask.1
+
+dist_bin_SCRIPTS       += sshsvc-mkauthkeys
+dist_man_MANS          += sshsvc-mkauthkeys.1
+
 ## bash scripts.
 if HAVE_BASH
 
@@ -306,6 +317,7 @@ EXTRA_DIST          += debian/copyright
 EXTRA_DIST             += debian/changelog
 EXTRA_DIST             += debian/control
 EXTRA_DIST             += debian/compat
+EXTRA_DIST             += debian/source/format
 
 ## What to install where.
 EXTRA_DIST             += debian/inst