summaryrefslogtreecommitdiff
path: root/cgi-bin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/Makefile')
-rw-r--r--cgi-bin/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/cgi-bin/Makefile b/cgi-bin/Makefile
index eb136728a..1ebef2ed7 100644
--- a/cgi-bin/Makefile
+++ b/cgi-bin/Makefile
@@ -1,7 +1,7 @@
#
# CGI makefile for CUPS.
#
-# Copyright 2007-2014 by Apple Inc.
+# Copyright 2007-2016 by Apple Inc.
# Copyright 1997-2006 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
@@ -126,10 +126,13 @@ install-exec:
#
install-headers:
- echo Installing header files in $(INCLUDEDIR)/cups...
- $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
- $(INSTALL_DATA) cgi.h $(INCLUDEDIR)/cups
- $(INSTALL_DATA) help-index.h $(INCLUDEDIR)/cups
+ if test "x$(privateinclude)" != x; then \
+ echo Installing private header files into $(PRIVATEINCLUDE)...; \
+ $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \
+ for file in cgi.h help-index.h; do \
+ $(INSTALL_DATA) $$file $(PRIVATEINCLUDE); \
+ done; \
+ fi
#