replace %components% and %distcomps% in man pages with corresponding files
[mmh] / man / Makefile.in
index ee5997c..bc9b799 100644 (file)
@@ -5,6 +5,7 @@
 #
 
 VERSION = @VERSION@
+DATE = @DATE@
 
 SHELL = /bin/sh
 
@@ -110,6 +111,7 @@ tmac.h: man.sed tmac.h.in
 man.sed: Makefile
        echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED.  DO NOT EDIT.,g' > $@
        echo 's,%nmhversion%,nmh-$(VERSION),g' >> $@
+       echo 's,%nmhdate%,$(DATE),g' >> $@
        echo 's,%bindir%,$(bindir),g' >> $@
        echo 's,%etcdir%,$(etcdir),g' >> $@
        echo 's,%libdir%,$(libdir),g' >> $@
@@ -122,6 +124,10 @@ man.sed: Makefile
        echo 's,%manext5%,$(manext5),g' >> $@
        echo 's,%manext8%,$(manext8),g' >> $@
        echo '$(POPSED)' >> $@
+       echo '/%components%/r $(top_srcdir)/etc/components' >> $@
+       echo ' s,%components%,,g' >> $@
+       echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
+       echo ' s,%distcomps%,,g' >> $@
 
 # ========= INSTALL TARGETS =========
 
@@ -198,6 +204,8 @@ realclean: distclean
 
 superclean: realclean
 
+lint:
+
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
 subdir = man