- @echo " Copying headers from /include/wx/gtk"
- @cd $(WXBASEDIR)/include/wx/gtk ; \
- for f in *.h ; do \
- rm -f $(includedir)/wx/gtk/$$f ; \
- $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
- done
+ @if test "@TOOLKIT@" = "GTK" ; then \
+ 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 ; \
+ fi
+ @if test "@TOOLKIT@" = "MOTIF" ; then \
+ echo " Copying headers from /include/wx/motif" ; \
+ cd $(WXBASEDIR)/include/wx/motif ; \
+ $(INSTALL) -d $(includedir)/wx/motif ; \
+ for f in *.h ; do \
+ rm -f $(includedir)/wx/motif/$$f ; \
+ $(INSTALL_DATA) $$f $(includedir)/wx/motif/$$f ; \
+ done ; \
+ fi