summaryrefslogtreecommitdiff
path: root/png
diff options
context:
space:
mode:
authorAlbrecht Schlosser <fltk@aljus.de>2024-08-10 16:51:36 +0200
committerGitHub <noreply@github.com>2024-08-10 16:51:36 +0200
commit85e08b981e6a9833c37f3ecaca2ac98739cf3b65 (patch)
treed9b75e169cba52583b7dcc5cd4b88ee1efb73145 /png
parent02a208b928b46a4c6d305497552517bc39cbb0ba (diff)
parentac8724502f889d8153193add66a2c88bbed99d0d (diff)
Merge pull request #17 from mid-kid/patch-1
Quote variables that may contain spaces (#17)
Diffstat (limited to 'png')
-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