mirror of https://github.com/fltk/fltk
Quote variables that may contain spaces in fltk-options/Makefile
This commit is contained in:
parent
b83a6abe01
commit
ac8724502f
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
# fltk-options Makefile for the Fast Light Tool Kit (FLTK).
|
# fltk-options Makefile for the Fast Light Tool Kit (FLTK).
|
||||||
#
|
#
|
||||||
# Copyright 2023 by Bill Spitzak and others.
|
# Copyright 2023-2024 by Bill Spitzak and others.
|
||||||
#
|
#
|
||||||
# This library is free software. Distribution and use rights are outlined in
|
# 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
|
# the file "COPYING" which should have been included with this file. If this
|
||||||
|
@ -55,39 +55,39 @@ include makedepend
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
echo "Installing fltk-options in $(DESTDIR)$(bindir)..."
|
echo "Installing fltk-options in $(DESTDIR)$(bindir)..."
|
||||||
-$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
-$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
|
||||||
$(INSTALL_BIN) $(FLTK_OPTIONS) $(DESTDIR)$(bindir)/fltk-options$(EXEEXT)
|
$(INSTALL_BIN) $(FLTK_OPTIONS) "$(DESTDIR)$(bindir)/fltk-options$(EXEEXT)"
|
||||||
|
|
||||||
install-linux:
|
install-linux:
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
|
-$(INSTALL_DIR) "$(DESTDIR)/usr/share/applications"
|
||||||
$(INSTALL_DATA) fltk-options.desktop $(DESTDIR)/usr/share/applications
|
$(INSTALL_DATA) fltk-options.desktop "$(DESTDIR)/usr/share/applications"
|
||||||
for size in 16 32 48 64 128; do \
|
for size in 16 32 48 64 128; do \
|
||||||
if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
|
if test ! -d "$(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps"; then \
|
||||||
$(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
|
$(INSTALL_DIR) "$(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps"; \
|
||||||
fi; \
|
fi; \
|
||||||
$(INSTALL_DATA) icons/fltk-options-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fltk-options.png; \
|
$(INSTALL_DATA) icons/fltk-options-$$size.png "$(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fltk-options.png"; \
|
||||||
done
|
done
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
|
-$(INSTALL_DIR) "$(DESTDIR)/usr/share/mimelnk/application"
|
||||||
$(INSTALL_DATA) x-fltk-options.desktop $(DESTDIR)/usr/share/mimelnk/application
|
$(INSTALL_DATA) x-fltk-options.desktop "$(DESTDIR)/usr/share/mimelnk/application"
|
||||||
|
|
||||||
install-osx:
|
install-osx:
|
||||||
echo Installing fltk-options in $(DESTDIR)/Applications...
|
echo Installing fltk-options in $(DESTDIR)/Applications...
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fltk-options.app
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fltk-options.app"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fltk-options.app/Contents
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fltk-options.app/Contents"
|
||||||
$(INSTALL_DATA) fltk-options.app/Contents/Info.plist $(DESTDIR)/Applications/fltk-options.app/Contents/Info.plist
|
$(INSTALL_DATA) fltk-options.app/Contents/Info.plist "$(DESTDIR)/Applications/fltk-options.app/Contents/Info.plist"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fltk-options.app/Contents/MacOS
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fltk-options.app/Contents/MacOS"
|
||||||
$(RM) $(DESTDIR)/Applications/fltk-options.app/Contents/MacOS/fltk-options
|
$(RM) "$(DESTDIR)/Applications/fltk-options.app/Contents/MacOS/fltk-options"
|
||||||
$(LN) $(bindir)/fltk-options $(DESTDIR)/Applications/fltk-options.app/Contents/MacOS/fltk-options
|
$(LN) $(bindir)/fltk-options "$(DESTDIR)/Applications/fltk-options.app/Contents/MacOS/fltk-options"
|
||||||
-$(INSTALL_DIR) $(DESTDIR)/Applications/fltk-options.app/Contents/Resources
|
-$(INSTALL_DIR) "$(DESTDIR)/Applications/fltk-options.app/Contents/Resources"
|
||||||
$(INSTALL_DATA) fltk-options.app/Contents/Resources/fltk-options.icns $(DESTDIR)/Applications/fltk-options.app/Contents/Resources
|
$(INSTALL_DATA) fltk-options.app/Contents/Resources/fltk-options.icns "$(DESTDIR)/Applications/fltk-options.app/Contents/Resources"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(DESTDIR)$(bindir)/fltk-options$(EXEEXT)
|
$(RM) "$(DESTDIR)$(bindir)/fltk-options$(EXEEXT)"
|
||||||
|
|
||||||
uninstall-linux:
|
uninstall-linux:
|
||||||
$(RM) $(DESTDIR)/usr/share/applications/fltk-options.desktop
|
$(RM) "$(DESTDIR)/usr/share/applications/fltk-options.desktop"
|
||||||
$(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fltk-options.png
|
$(RM) "$(DESTDIR)/usr/share/icons/hicolor/*/fltk-options.png"
|
||||||
$(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fltk-options.desktop
|
$(RM) "$(DESTDIR)/usr/share/mimelnk/application/x-fltk-options.desktop"
|
||||||
|
|
||||||
uninstall-osx:
|
uninstall-osx:
|
||||||
$(RM) -r $(DESTDIR)/Applications/fltk-options.app
|
$(RM) -r "$(DESTDIR)/Applications/fltk-options.app"
|
||||||
|
|
Loading…
Reference in New Issue