Build system: Know how to build adnshost.txt
[adns] / Makefile.in
index ab38836..4faa50b 100644 (file)
@@ -1,7 +1,8 @@
 # Makefile[.in] - top-level Makefile
 #  
 #  This file is part of adns, which is
-#    Copyright (C) 1997-2000,2003,2006  Ian Jackson
+#    Copyright (C) 1997-2000,2003,2006,2014  Ian Jackson
+#    Copyright (C) 2014  Mark Wooding
 #    Copyright (C) 1999-2000,2003,2006  Tony Finch
 #    Copyright (C) 1991 Massachusetts Institute of Technology
 #  (See the file INSTALL for full details.)
@@ -43,10 +44,10 @@ all-here install-here uninstall-here distprep-here: README
 
 clean-here mostlyclean-here:
                rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz
-               rm -rf dist_tmp
+               rm -rf dist_tmp web adnshost.txt
 
 distclean-here maintainer-clean-here:  clean-here
-               rm -f settings.make config.h config.cache config.log config.status
+       rm -f settings.make config.cache config.log config.status Makefile
 
 install-strip:
        $(MAKE) INSTALL_PROGRAM_FLAGS=-s
@@ -64,6 +65,9 @@ dist:                 distprep
        gzip -9 $(dist_tmp).tar
        mv $(dist_tmp).tar.gz .
 
+adnshost.txt: all
+       client/adnshost_s --help >$@.tmp && mv -f $@.tmp $@
+
 check:                 all
        $(MAKE) -C regress check