From 887a45822703da2420df9c2ecc024b1f4dfc218e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 15 Jan 2006 03:16:09 +0000 Subject: Work on Linux and OSX desktop integration stuff via make install and packaging via EPM. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Makefile | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'fluid/Makefile') diff --git a/fluid/Makefile b/fluid/Makefile index 254f3e16f..ec17b98cd 100644 --- a/fluid/Makefile +++ b/fluid/Makefile @@ -76,7 +76,7 @@ depend: $(CPPFILES) # Automatically generated dependencies... include makedepend -install: all +install: all $(INSTALL_DESKTOP) echo "Installing FLUID in $(DESTDIR)$(bindir)..." -$(MKDIR) $(DESTDIR)$(bindir) $(CP) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT) @@ -84,9 +84,38 @@ install: all $(DESTDIR)$(bindir)/fltk-config --post $(DESTDIR)$(bindir)/fluid$(EXEEXT) $(CHMOD) 755 $(DESTDIR)$(bindir)/fluid$(EXEEXT) -uninstall: +install-linux: + -$(MKDIR) $(DESTDIR)/usr/share/applnk/Development + $(CP) fluid.desktop $(DESTDIR)/usr/share/applnk/Development + for size in 16 32 48 64 128; do \ + -$(MKDIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}; \ + $(CP) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/fluid.png; \ + done + -$(MKDIR) $(DESTDIR)/usr/share/mimelnk/application + $(CP) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application + +install-osx: + -$(MKDIR) $(DESTDIR)/Applications/fluid.app + $(CP) fluid.plist $(DESTDIR)/Applications/fluid.app/Info.plist + $(CP) fluid.info $(DESTDIR)/Applications/fluid.app/PkgInfo + -$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents + -$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS + $(LN) $(bindir)/fluid $(DESTDIR)/Application/fluid.app/Contents/MacOS/fluid + -$(MKDIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources + $(CP) icons/fluid.icns $(DESTDIR)/Applications/fluid.app/Contents/Resources + +uninstall: $(UNINSTALL_DESKTOP) $(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT) +uninstall-linux: + $(RM) $(DESTDIR)/usr/share/applnk/Development/fluid.desktop + $(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png + $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop + +uninstall-osx: + $(RM) -r $(DESTDIR)/Applications/fluid.app + + # # Note: The rebuild target can only be used if you have the original .fl # files. This is normally only used by the FLTK maintainers... -- cgit v1.2.3