summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Makefile48
1 files changed, 24 insertions, 24 deletions
diff --git a/fluid/Makefile b/fluid/Makefile
index eb5b8c192..ae8037441 100644
--- a/fluid/Makefile
+++ b/fluid/Makefile
@@ -1,7 +1,7 @@
#
# FLUID Makefile for the Fast Light Tool Kit (FLTK).
#
-# Copyright 1998-2023 by Bill Spitzak and others.
+# Copyright 1998-2024 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
@@ -97,45 +97,45 @@ include makedepend
install: all
echo "Installing FLUID in $(DESTDIR)$(bindir)..."
- -$(INSTALL_DIR) $(DESTDIR)$(bindir)
- $(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
+ -$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
+ $(INSTALL_BIN) $(FLUID) "$(DESTDIR)$(bindir)/fluid$(EXEEXT)"
install-linux:
- -$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
- $(INSTALL_DATA) fluid.desktop $(DESTDIR)/usr/share/applications
+ -$(INSTALL_DIR) "$(DESTDIR)$(datadir)/applications"
+ $(INSTALL_DATA) fluid.desktop "$(DESTDIR)$(datadir)/applications"
for size in 16 32 48 64 128; do \
- if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
- $(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
+ if test ! -d "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps"; then \
+ $(INSTALL_DIR) "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps"; \
fi; \
- $(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
+ $(INSTALL_DATA) icons/fluid-$$size.png "$(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/fluid.png"; \
done
- -$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
- $(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
+ -$(INSTALL_DIR) "$(DESTDIR)$(datadir)/mimelnk/application"
+ $(INSTALL_DATA) x-fluid.desktop "$(DESTDIR)$(datadir)/mimelnk/application"
install-osx:
echo Installing Fluid in $(DESTDIR)/Applications...
- -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app
- -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents
- $(INSTALL_DATA) fluid.app/Contents/Info.plist $(DESTDIR)/Applications/fluid.app/Contents/Info.plist
- -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/MacOS
- $(RM) $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
- $(LN) $(bindir)/fluid $(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid
- -$(INSTALL_DIR) $(DESTDIR)/Applications/fluid.app/Contents/Resources
- $(INSTALL_DATA) fluid.app/Contents/Resources/fluid.icns $(DESTDIR)/Applications/fluid.app/Contents/Resources
+ -$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app"
+ -$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents"
+ $(INSTALL_DATA) fluid.app/Contents/Info.plist "$(DESTDIR)/Applications/fluid.app/Contents/Info.plist"
+ -$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents/MacOS"
+ $(RM) "$(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid"
+ $(LN) "$(bindir)/fluid" "$(DESTDIR)/Applications/fluid.app/Contents/MacOS/fluid"
+ -$(INSTALL_DIR) "$(DESTDIR)/Applications/fluid.app/Contents/Resources"
+ $(INSTALL_DATA) fluid.app/Contents/Resources/fluid.icns "$(DESTDIR)/Applications/fluid.app/Contents/Resources"
uninstall:
- $(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
+ $(RM) "$(DESTDIR)$(bindir)/fluid$(EXEEXT)"
uninstall-linux:
- $(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
- $(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
- $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
+ $(RM) "$(DESTDIR)$(datadir)/applications/fluid.desktop"
+ $(RM) "$(DESTDIR)$(datadir)/icons/hicolor"/*/fluid.png
+ $(RM) "$(DESTDIR)$(datadir)/mimelnk/application/x-fluid.desktop"
uninstall-osx:
- $(RM) -r $(DESTDIR)/Applications/fluid.app
+ $(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...
+# files. This is normally only used by FLTK maintainers...
# It *must* be executed *after* fluid has been built and
# fluid must be rebuilt if any {.fl|.cxx|.h} files were changed.