summaryrefslogtreecommitdiff
path: root/png/Makefile
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-01-21 22:28:14 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-08-10 16:28:37 +0200
commitb83a6abe01664245a2319c58b02063ba924fe912 (patch)
treebf17db7df3c371572aa10f8bfa737319b44d51c1 /png/Makefile
parentfe7560fe6134b7957147bbe083718d8749b35164 (diff)
Configure/make: Quote variables that may contain spaces
This allows installing FLTK to directories that contain spaces.
Diffstat (limited to 'png/Makefile')
-rw-r--r--png/Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/png/Makefile b/png/Makefile
index 7fd9a8765..53efddb8a 100644
--- a/png/Makefile
+++ b/png/Makefile
@@ -2,7 +2,7 @@
# PNG library Makefile for the Fast Light Toolkit (FLTK).
#
# Copyright 1997-2011 by Easy Software Products.
-# Copyright 2012-2023 by Bill Spitzak and others.
+# Copyright 2012-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
@@ -52,15 +52,15 @@ clean:
install: $(LIBPNG)
echo "Installing libfltk_png$(LIBEXT) in $(libdir)..."
- -$(INSTALL_DIR) $(DESTDIR)$(libdir)
- $(INSTALL_LIB) $(LIBPNG) $(DESTDIR)$(libdir)
- $(RANLIB) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
+ -$(INSTALL_DIR) "$(DESTDIR)$(libdir)"
+ $(INSTALL_LIB) $(LIBPNG) "$(DESTDIR)$(libdir)"
+ $(RANLIB) "$(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)"
echo "Installing png headers in $(includedir)/FL/images..."
- -$(INSTALL_DIR) $(DESTDIR)$(includedir)/FL/images
- $(INSTALL_DATA) png.h $(DESTDIR)$(includedir)/FL/images
- $(INSTALL_DATA) pngconf.h $(DESTDIR)$(includedir)/FL/images
- $(INSTALL_DATA) pnglibconf.h $(DESTDIR)$(includedir)/FL/images
- $(INSTALL_DATA) pngprefix.h $(DESTDIR)$(includedir)/FL/images
+ -$(INSTALL_DIR) "$(DESTDIR)$(includedir)/FL/images"
+ $(INSTALL_DATA) png.h "$(DESTDIR)$(includedir)/FL/images"
+ $(INSTALL_DATA) pngconf.h "$(DESTDIR)$(includedir)/FL/images"
+ $(INSTALL_DATA) pnglibconf.h "$(DESTDIR)$(includedir)/FL/images"
+ $(INSTALL_DATA) pngprefix.h "$(DESTDIR)$(includedir)/FL/images"
#
@@ -69,12 +69,12 @@ install: $(LIBPNG)
uninstall:
echo "Uninstalling libfltk_png$(LIBEXT) in $(libdir)..."
- $(RM) $(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)
+ $(RM) "$(DESTDIR)$(libdir)/libfltk_png$(LIBEXT)"
echo "Uninstalling png headers in $(includedir)/FL/images..."
- $(RM) $(DESTDIR)$(includedir)/FL/images/png.h
- $(RM) $(DESTDIR)$(includedir)/FL/images/pngconf.h
- $(RM) $(DESTDIR)$(includedir)/FL/images/pnglibconf.h
- $(RM) $(DESTDIR)$(includedir)/FL/images/pngprefix.h
+ $(RM) "$(DESTDIR)$(includedir)/FL/images/png.h"
+ $(RM) "$(DESTDIR)$(includedir)/FL/images/pngconf.h"
+ $(RM) "$(DESTDIR)$(includedir)/FL/images/pnglibconf.h"
+ $(RM) "$(DESTDIR)$(includedir)/FL/images/pngprefix.h"
#
@@ -92,7 +92,7 @@ $(LIBPNG): $(OBJS)
# Make dependencies...
#
-depend: $(OBJS:.o=.c)
+depend: $(OBJS:.o=.c)
makedepend -Y -I.. -f makedepend -w 20 $(OBJS:.o=.c)
echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > makedepend.tmp
echo "" >> makedepend.tmp