Masato Taruishi
taru****@users*****
2004年 10月 31日 (日) 21:56:08 JST
=================================================================== RCS file: ultrapossum/module/ultrapossum.am,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ultrapossum/module/ultrapossum.am 2004/10/29 18:38:54 1.5 +++ ultrapossum/module/ultrapossum.am 2004/10/31 12:56:08 1.6 @@ -15,6 +15,7 @@ modulelocaldir = $(moduledir)/$(modulename) variabledir = $(modulelocaldir) modulesysconfdir = @MODULECONFDIR@ +templatedir = @TEMPLATEDIR@ testdir = @TESTSCRIPTSDIR@ mkvariable=$(shell if test -x "@top_srcdir@/mkvariable"; then echo "@top_srcdir@/mkvariable"; else echo "@SHAREDIR@/mkvariable"; fi ) @@ -47,6 +48,29 @@ else \ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(modulesysconfdir)/$$p"; \ $(INSTALL_DATA) $$p $(DESTDIR)$(modulesysconfdir)/$$p; \ + fi; \ + fi; fi; \ + done + +install-templateDATA: $(template_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(templatedir) + @list='$(template_DATA)'; for p in $$list; do \ + if test -f $(srcdir)/$$p; then \ + if test -f $(DESTDIR)/$(templatedir)/$$p; then \ + echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(templatedir)/$$p.new"; \ + $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(templatedir)/$$p.new; \ + else \ + echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(templatedir)/$$p"; \ + $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(templatedir)/$$p; \ + fi; \ + else if test -f $$p; then \ + if test -f $(DESTDIR)/$(templatedir)/$$p; then \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(templatedir)/$$p.new"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(templatedir)/$$p.new; \ + else \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(templatedir)/$$p"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(templatedir)/$$p; \ fi; \ fi; fi; \ done