===================================================================
RCS file: /home/cvs/OpenXM/src/asir-contrib/packages/doc/sm1/Makefile,v
retrieving revision 1.1
retrieving revision 1.4
diff -u -p -r1.1 -r1.4
--- OpenXM/src/asir-contrib/packages/doc/sm1/Makefile	2005/04/13 23:50:17	1.1
+++ OpenXM/src/asir-contrib/packages/doc/sm1/Makefile	2017/03/30 06:51:38	1.4
@@ -1,33 +1,26 @@
-#$OpenXM$
+#$OpenXM: OpenXM/src/asir-contrib/packages/doc/sm1/Makefile,v 1.3 2009/02/21 22:09:12 ohara Exp $
 
 # Name of this document.
 MYNAME=sm1
 
-SRC = sm1.oxw
+SRC_RR = ${CONTRIB}/${MYNAME}.rr
 
-ENSRCS = ${SRC:.oxw=.en} 
-JASRCS = ${SRC:.oxw=.ja} 
-ENAUTO= ${MYNAME}-auto.en
-JAAUTO=${ENAUTO:.en=.ja}
 GENTEXI_OPT=--noSorting --author "OpenXM.org" --infoName asir-contrib-${MYNAME}
-include ../Makefile.common
+include ../M/Makefile
 
 clean_private: 
-	${RM} -f ${MYNAME}-ja.texi ${MYNAME}-en.texi
+	${RM} ${MYNAME}-ja.texi ${MYNAME}-en.texi
 
-${MYNAME}-ja.texi: ${MYNAME}.oxg
+${MYNAME}-ja.texi: ${MYNAME}.oxg ${MYNAME}-auto.ja
 	@echo "Sm1 OX Server =?ISO-2022-JP?B?GyRCJV4lSyVlJSIlaxsoQg==?= " >title.tmp
-# generated by nkf -M
-	${NKF} -j ${MYNAME}.oxg | ${OXWEAVE} usage-ja | ${OXGENTEXI} ${GENTEXI_OPT} --title "`nkf -e title.tmp`" >${MYNAME}-ja.texi
-	rm -f title.tmp
+	cat ${MYNAME}.oxg | ${OXWEAVE} usage-ja | ${OXGENTEXI} ${GENTEXI_OPT} --title "`${NKF} -w title.tmp`" > $@
+	${RM} title.tmp
 
-${MYNAME}-en.texi: ${MYNAME}.oxg
-	${NKF} -j ${MYNAME}.oxg | ${OXWEAVE} usage-en | ${OXGENTEXI} ${GENTEXI_OPT} --title "Sm1 OX Server Manual" >${MYNAME}-en.texi
+${MYNAME}-en.texi: ${MYNAME}.oxg ${MYNAME}-auto.en
+	cat ${MYNAME}.oxg | ${OXWEAVE} usage-en | ${OXGENTEXI} ${GENTEXI_OPT} --title "Sm1 OX Server Manual" > $@
 
-${MYNAME}-auto.en: ${CONTRIB}/${MYNAME}.rr
-	${RM} -f ${MYNAME}-auto.en
-	${OXWEAVE} usage  <${CONTRIB}/${MYNAME}.rr | ${OXGENTEXI} --category sm1 --en --upnode "Top" ${OPTGENTEXI} >${MYNAME}-auto.en
+${MYNAME}-auto.en: ${SRC_RR}
+	cat ${SRC_RR} | ${OXWEAVE} usage | ${OXGENTEXI} --category sm1 --en --upnode "Top" ${OPTGENTEXI} > $@
 
-${MYNAME}-auto.ja: ${CONTRIB}/${MYNAME}.rr
-	${RM} -f ${MYNAME}-auto.ja
-	${OXWEAVE} usage  <${CONTRIB}/${MYNAME}.rr | ${OXGENTEXI} --category sm1 --en --upnode "Top" ${OPTGENTEXI} >${MYNAME}-auto.ja
+${MYNAME}-auto.ja: ${SRC_RR}
+	cat ${SRC_RR} | ${OXWEAVE} usage | ${OXGENTEXI} --category sm1 --en --upnode "Top" ${OPTGENTEXI} > $@