summaryrefslogtreecommitdiff
path: root/mk/inc.mk
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-04-01 14:07:52 +0000
committer <>2013-05-17 14:06:43 +0000
commit986bc2ac05bc4c08c6a0ed30c9e97674932ccfeb (patch)
tree8346daf16e98e93415195acbf99f09cb5326b73b /mk/inc.mk
downloadbmake-tarball-bmake.tar.gz
Imported from /home/lorry/working-area/delta_bmake-tarball/bmake.tar.gz.HEADbmakemaster
Diffstat (limited to 'mk/inc.mk')
-rw-r--r--mk/inc.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/mk/inc.mk b/mk/inc.mk
new file mode 100644
index 0000000..5d57f52
--- /dev/null
+++ b/mk/inc.mk
@@ -0,0 +1,35 @@
+# $Id: inc.mk,v 1.3 2011/03/11 05:23:05 sjg Exp $
+#
+# @(#) Copyright (c) 2008, Simon J. Gerraty
+#
+# This file is provided in the hope that it will
+# be of use. There is absolutely NO WARRANTY.
+# Permission to copy, redistribute or otherwise
+# use this file is hereby granted provided that
+# the above copyright notice and this notice are
+# left intact.
+#
+# Please send copies of changes and bug-fixes to:
+# sjg@crufty.net
+#
+
+.include <init.mk>
+
+includes: ${INCS}
+
+.if !empty(LIBOWN)
+INC_INSTALL_OWN ?= -o ${LIBOWN} -g ${LIBGRP}
+.endif
+INCMODE ?= 444
+INC_COPY ?= -C
+INCSDIR ?= ${INCDIR}
+
+realinstall: incinstall
+.if !target(incinstall)
+incinstall:
+.if !empty(INCS)
+ [ -d ${DESTDIR}${INCSDIR} ] || \
+ ${INSTALL} -d ${INC_INSTALL_OWN} -m 775 ${DESTDIR}${INCSDIR}
+ ${INSTALL} ${INC_COPY} ${INC_INSTALL_OWN} -m ${INCMODE} ${INCS} ${DESTDIR}${INCSDIR}
+.endif
+.endif