$NetBSD: patch-az,v 1.1 2000/12/22 17:26:20 jlam Exp $ --- include/Motif-2.1/Xm/Makefile.am.orig Thu Dec 14 16:30:23 2000 +++ include/Motif-2.1/Xm/Makefile.am @@ -6,10 +6,13 @@ # # Install headers # -# Lets put the headers in a sub directory to avoid -# poluting /usr/local with more directories for default installs. +# Let's put the headers in a sub directory if not a default install. # +if DefaultVersion21 +xmdir= $(includedir)/Xm +else xmdir= $(prefix)/LessTif/Motif2.1/include/Xm +endif HEADERS1_2 = \ ArrowB.h ArrowBG.h AtomMgr.h \ @@ -73,9 +76,3 @@ rm $$i; \ fi ; \ done - -install-data-hook: -if DefaultVersion21 - if [ -d $(DESTDIR)$(prefix)/include/Xm ]; then rm -rf $(DESTDIR)$(prefix)/include/Xm; else rm -f $(DESTDIR)$(prefix)/include/Xm; fi - (mkdir -p $(DESTDIR)$(prefix)/include && cd $(DESTDIR)$(prefix)/include && $(LN_S) ../LessTif/Motif2.1/include/Xm Xm) -endif