Fixed installation hook for non KDE builds.

ver1_5_1
Christophe Teyssier 2007-12-14 00:55:27 +00:00
parent 318d9037a2
commit 65ef481b53
1 changed files with 2 additions and 2 deletions

View File

@ -66,11 +66,11 @@ dist-hook:
)
install-data-hook:
if [ "$(DESTDIR)/$(kde_datadir)" -a -d $(DESTDIR)/$(kde_datadir)/@PACKAGE@ -a ! -h $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ] ; then \
if [ "$(kde_datadir)" -a -d $(DESTDIR)/$(kde_datadir)/@PACKAGE@ -a ! -h $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ] ; then \
mv -f -b $(DESTDIR)/$(kde_datadir)/@PACKAGE@/* $(DESTDIR)/$(datadir)/@PACKAGE@/ ; \
rmdir $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ; \
fi
if [ "$(DESTDIR)/$(kde_datadir)" -a ! -h $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ] ; then \
if [ "$(kde_datadir)" -a ! -h $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ] ; then \
ln -s $(datadir)/@PACKAGE@ $(DESTDIR)/$(kde_datadir)/@PACKAGE@ ; \
fi