Support installing in $(DESTDIR)

This commit is contained in:
matthieu 2006-11-27 13:24:18 +00:00
parent 7589183e65
commit 4842321c9a

View File

@ -578,30 +578,30 @@ install : install-program install-man install-ad
@ $(ECHO) "" @ $(ECHO) ""
install-program : xlock install-program : xlock
$(top_srcdir)/mkinstalldirs $(bindir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(INSTPGMFLAGS) $(UTILOBJDIR)xlock$(E) $(bindir) $(INSTALL_PROGRAM) $(INSTPGMFLAGS) $(UTILOBJDIR)xlock$(E) $(DESTDIR)$(bindir)
@MODULES@mkdir -p $(DEF_MODULEPATH) @MODULES@mkdir -p $(DESTDIR)$(DEF_MODULEPATH)
@MODULES@cp *.xlk $(DEF_MODULEPATH) @MODULES@cp *.xlk $(DESTDIR)$(DEF_MODULEPATH)
@MODULES@cp glx/*.xlk $(DEF_MODULEPATH) @MODULES@cp glx/*.xlk $(DESTDIR)$(DEF_MODULEPATH)
install-man : install-man :
$(top_srcdir)/mkinstalldirs $(mandir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
$(INSTALL_DATA) $(UTILDIR)xlock.man $(mandir)/xlock.1 $(INSTALL_DATA) $(UTILDIR)xlock.man $(DESTDIR)$(mandir)/xlock.1
install-ad : install-ad :
$(top_srcdir)/mkinstalldirs $(xapploaddir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
$(INSTALL_DATA) $(UTILDIR)XLock.ad $(xapploaddir)/XLock $(INSTALL_DATA) $(UTILDIR)XLock.ad $(DESTDIR)$(xapploaddir)/XLock
uninstall : uninstall-program uninstall-man uninstall-ad uninstall : uninstall-program uninstall-man uninstall-ad
uninstall-program : uninstall-program :
$(RM) $(bindir)/xlock$(E) $(RM) $(DESTDIR)$(bindir)/xlock$(E)
uninstall-man : uninstall-man :
$(RM) $(mandir)/xlock.1 $(RM) $(DESTDIR)$(mandir)/xlock.1
uninstall-ad : uninstall-ad :
$(RM) $(xapploaddir)/XLock $(RM) $(DESTDIR)$(xapploaddir)/XLock
install.program : install-program install.program : install-program