Index: p/src/rm12/Makefile
===================================================================
--- app/src/rm12/Makefile	(revision 8d3e6ab33b2b6727eb54bb3498a0ba2af9ca9ea1)
+++ 	(revision )
@@ -1,8 +1,0 @@
-main:
-
-copy:
-ifdef UTT_BIN_DIR
-	cp rm12 ${UTT_BIN_DIR}
-endif
-
-clean:
Index: p/src/rm12/rm12
===================================================================
--- app/src/rm12/rm12	(revision 20b4e44e7537762f6aceb72b039f6e8f8a50e201)
+++ 	(revision )
@@ -1,9 +1,0 @@
-#!/bin/bash
-
-#package:	UAM Text Tools
-#component:	rm12
-#version:	1.0
-#author:	Tomasz Obrebski
-
-
-sed -r '/[0-9]+[ \t]+[0-9]+[ \t]+BOS/! s/[0-9]+[ \t]+[0-9]+[ \t]//'
Index: auto/output/Makefile
===================================================================
--- auto/output/Makefile	(revision 8e1730ce813e73fcd85ac2bc9142259b49434f09)
+++ auto/output/Makefile	(revision 4518a0b7b6b78168b5b4cc330fc97d43cb5c9183)
@@ -46,5 +46,5 @@
 VPATH = ./src
 
-PROGRAMS = tok sen fla gph kot unfla grp mar ser kon
+PROGRAMS = tok sen fla gph kot unfla grp mar ser kon rm12
 
 TOK_OBJ_FILES = tok.o tok_cmdline.o
@@ -89,4 +89,7 @@
 KON_PERL_FILES = kon.pl
 kon: \$(KON_PERL_FILES)
+
+RM12_SED_FILES = rm12.sed
+rm12: \$(RM12_SED_FILES)
 
 CONFIG_FILES = src/config.h Makefile
@@ -160,4 +163,8 @@
 	\$(CHMOD) a+x \$@
 
+%: %.sed
+	\$(CP) \$< \$@
+	\$(CHMOD) a+x \$@
+
 EOF
 
Index: src/rm12.sed
===================================================================
--- src/rm12.sed	(revision 4518a0b7b6b78168b5b4cc330fc97d43cb5c9183)
+++ src/rm12.sed	(revision 4518a0b7b6b78168b5b4cc330fc97d43cb5c9183)
@@ -0,0 +1,10 @@
+#!/bin/sed -rf
+
+#package:	UAM Text Tools
+#component:	rm12
+#version:	1.0
+#author:	Tomasz Obrebski
+
+
+/[0-9]+[ \t]+[0-9]+[ \t]+BOS/!
+s/[0-9]+[ \t]+[0-9]+[ \t]//
