diff options
Diffstat (limited to 'lib/am/lisp.am')
-rw-r--r-- | lib/am/lisp.am | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/am/lisp.am b/lib/am/lisp.am index dbc2257cc..19aaf9f6c 100644 --- a/lib/am/lisp.am +++ b/lib/am/lisp.am @@ -16,34 +16,34 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -_am_installdirs += $(DESTDIR)$(@NDIR@dir) -?EXEC?.PHONY install-exec-am: install-@DIR@LISP -?!EXEC?.PHONY install-data-am: install-@DIR@LISP -install-@DIR@LISP: $(@DIR@_LISP) $(ELCFILES) +_am_installdirs += $(DESTDIR)$(%NDIR%dir) +?EXEC?.PHONY install-exec-am: install-%DIR%LISP +?!EXEC?.PHONY install-data-am: install-%DIR%LISP +install-%DIR%LISP: $(%DIR%_LISP) $(ELCFILES) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(@NDIR@dir) + $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir) ## Funny invocation because Makefile variable can be empty, leading to ## a syntax error in sh. - @list='$(@DIR@_LISP)'; for p in $$list; do \ + @list='$(%DIR%_LISP)'; for p in $$list; do \ ## A lisp file can be in the source directory or the build directory. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ ?BASE? f="`echo $$p | sed -e 's|^.*/||'`"; \ ?!BASE? f="$$p"; \ - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f"; \ - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f; \ + echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f"; \ + $(INSTALL_DATA) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f; \ ## Only install .elc file if it exists. if test -f $${p}c; then \ - echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(@NDIR@dir)/$${f}c"; \ - $(INSTALL_DATA) $${p}c $(DESTDIR)$(@NDIR@dir)/$${f}c; \ + echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c"; \ + $(INSTALL_DATA) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c; \ else : ; fi; \ done -.PHONY uninstall-am: uninstall-@DIR@LISP -uninstall-@DIR@LISP: +.PHONY uninstall-am: uninstall-%DIR%LISP +uninstall-%DIR%LISP: @$(NORMAL_UNINSTALL) - @list='$(@DIR@_LISP)'; for p in $$list; do \ + @list='$(%DIR%_LISP)'; for p in $$list; do \ ?BASE? f="`echo $$p | sed -e 's|^.*/||'`"; \ ?!BASE? f="$$p"; \ - echo " rm -f $(@NDIR@dir)/$$f $(DESTDIR)$(@NDIR@dir)/$${f}c"; \ - rm -f $(DESTDIR)$(@NDIR@dir)/$$f $(DESTDIR)$(@NDIR@dir)/$${f}c; \ + echo " rm -f $(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c"; \ + rm -f $(DESTDIR)$(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c; \ done |