summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index d3e648c..88c7ff9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -102,10 +102,13 @@ dist_bitmap_DATA = \
appmandir = $(mandir)/man$(APP_MAN_SUFFIX)
-appman_DATA = $(appman_SOURCES:man=$(APP_MAN_SUFFIX))
+appman_DATA = $(appman_SOURCES:man=$(APP_MAN_SUFFIX)) \
+ $(man_shadows:=.$(APP_MAN_SUFFIX))
+
+BUILT_SOURCES = .shadows.DONE
EXTRA_DIST += $(appman_SOURCES)
-CLEANFILES += $(appman_DATA)
+CLEANFILES += $(appman_DATA) $(BUILT_SOURCES)
SED = sed
@@ -130,3 +133,11 @@ SUFFIXES += .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
sed $(MAN_SUBSTS) < $< > $@
+
+man_shadows = atobm bmtoa
+
+.shadows.DONE:
+ -rm -f $(man_shadows:=.$(APP_MAN_SUFFIX))
+ (for i in $(man_shadows:=.$(APP_MAN_SUFFIX)) ; do \
+ echo .so man$(APP_MAN_SUFFIX)/bitmap.$(APP_MAN_SUFFIX) > $$i; \
+ done)