]> git.saurik.com Git - wxWidgets.git/commitdiff
now installs properly
authorKarsten Ballüder <ballueder@usa.net>
Tue, 8 Sep 1998 19:09:50 +0000 (19:09 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Tue, 8 Sep 1998 19:09:50 +0000 (19:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/Makefile.in

index d2fb1fd750984793480ae5b213cc4bd3e8064c71..c8f20c6335b2df08ee7610bb511ae5c1834db4fd 100644 (file)
@@ -48,25 +48,31 @@ install::
        @echo " "
        @echo "  Creating directories.."
        @$(WXBASEDIR)/mkinstalldirs \
-          /usr/local/include/wx \
-          /usr/local/include/wx/gtk \
-          /usr/local/include/wx/common \
-          /usr/local/include/wx/protocol \
-          /usr/local/include/wx/generic
+          @prefix@/include/wx \
+          @prefix@/include/wx/gtk \
+          @prefix@/include/wx/common \
+          @prefix@/include/wx/generic \
+          @prefix@/include/wx/protocol \
        @echo "  Copying headers from /include/wx"
        @cd $(WXBASEDIR)/include/wx ; \
+       $(INSTALL) -d $(includedir)/wx ; \
        for f in *.h ; do \
          rm -f $(includedir)/wx/$$f ; \
          $(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
        done
        @echo "  Copying headers from /include/wx/gtk"
        @cd $(WXBASEDIR)/include/wx/gtk ; \
+       $(INSTALL) -d $(includedir)/wx/gtk ; \
        for f in *.h ; do \
          rm -f $(includedir)/wx/gtk/$$f ; \
          $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
-       done
+       done ; \
+       $(INSTALL) -d $(libdir) ;\
+       mv $(includedir)/wx/gtk/setup.h $(libdir)/wxsetup.h ;\
+       ln -s $(libdir)/wxsetup.h $(includedir)/wx/gtk/setup.h
        @echo "  Copying headers from /include/wx/generic"
        @cd $(WXBASEDIR)/include/wx/generic ; \
+       $(INSTALL) -d $(includedir)/wx/generic ; \
        for f in *.h ; do \
          rm -f $(includedir)/wx/generic/$$f ; \
          $(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
@@ -79,6 +85,7 @@ install::
        done
        @echo "  Copying wx-config"
        @cd $(WXBASEDIR) ; \
+         $(INSTALL) -d $(bindir) ;\
          rm -f $(bindir)/wx-config ; \
          $(INSTALL_PROGRAM) wx-config $(bindir)/wx-config
        @echo "  Copying static library"
@@ -144,4 +151,4 @@ lexer.c: ../common/lexer.l
        @$(RM) lexer.l
 
 clean::
-       
\ No newline at end of file
+