now installs properly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1998-09-08 19:09:50 +00:00
parent c058d77142
commit a665764c39

View File

@ -48,25 +48,31 @@ install::
@echo " " @echo " "
@echo " Creating directories.." @echo " Creating directories.."
@$(WXBASEDIR)/mkinstalldirs \ @$(WXBASEDIR)/mkinstalldirs \
/usr/local/include/wx \ @prefix@/include/wx \
/usr/local/include/wx/gtk \ @prefix@/include/wx/gtk \
/usr/local/include/wx/common \ @prefix@/include/wx/common \
/usr/local/include/wx/protocol \ @prefix@/include/wx/generic \
/usr/local/include/wx/generic @prefix@/include/wx/protocol \
@echo " Copying headers from /include/wx" @echo " Copying headers from /include/wx"
@cd $(WXBASEDIR)/include/wx ; \ @cd $(WXBASEDIR)/include/wx ; \
$(INSTALL) -d $(includedir)/wx ; \
for f in *.h ; do \ for f in *.h ; do \
rm -f $(includedir)/wx/$$f ; \ rm -f $(includedir)/wx/$$f ; \
$(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \ $(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
done done
@echo " Copying headers from /include/wx/gtk" @echo " Copying headers from /include/wx/gtk"
@cd $(WXBASEDIR)/include/wx/gtk ; \ @cd $(WXBASEDIR)/include/wx/gtk ; \
$(INSTALL) -d $(includedir)/wx/gtk ; \
for f in *.h ; do \ for f in *.h ; do \
rm -f $(includedir)/wx/gtk/$$f ; \ rm -f $(includedir)/wx/gtk/$$f ; \
$(INSTALL_DATA) $$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" @echo " Copying headers from /include/wx/generic"
@cd $(WXBASEDIR)/include/wx/generic ; \ @cd $(WXBASEDIR)/include/wx/generic ; \
$(INSTALL) -d $(includedir)/wx/generic ; \
for f in *.h ; do \ for f in *.h ; do \
rm -f $(includedir)/wx/generic/$$f ; \ rm -f $(includedir)/wx/generic/$$f ; \
$(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \ $(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
@ -79,6 +85,7 @@ install::
done done
@echo " Copying wx-config" @echo " Copying wx-config"
@cd $(WXBASEDIR) ; \ @cd $(WXBASEDIR) ; \
$(INSTALL) -d $(bindir) ;\
rm -f $(bindir)/wx-config ; \ rm -f $(bindir)/wx-config ; \
$(INSTALL_PROGRAM) wx-config $(bindir)/wx-config $(INSTALL_PROGRAM) wx-config $(bindir)/wx-config
@echo " Copying static library" @echo " Copying static library"
@ -144,4 +151,4 @@ lexer.c: ../common/lexer.l
@$(RM) lexer.l @$(RM) lexer.l
clean:: clean::