summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-30 23:09:43 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-30 23:09:43 +0000
commit932879a8374f6dd1dbfec6884c9b14433cd36e00 (patch)
tree3d15e2d27971989271efa7694365876164fbe1f2
parentfd07f07e280e1ef112fc5b1ee26a2ffb477cdf5c (diff)
downloadsunmake-932879a8374f6dd1dbfec6884c9b14433cd36e00.tar.gz
Install rules
-rw-r--r--Makefile.am17
-rw-r--r--usr/src/make_src/Make/bin/make/common/make.rules (renamed from usr/src/make_src/Make/bin/make/common/make.rules.file)0
-rw-r--r--usr/src/make_src/Make/bin/make/common/svr4.make.rules (renamed from usr/src/make_src/Make/bin/make/common/svr4.make.rules.file)0
3 files changed, 15 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 5c74bab..acec397 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -109,10 +109,23 @@ usr/src/make_src/Make/include/bsd/bsd.h \
usr/src/make_src/Make/include/mk/copyright.h \
usr/src/make_src/Make/bin/make/common/state.cc
+rules = \
+usr/src/make_src/Make/bin/make/common/svr4.make.rules \
+usr/src/make_src/Make/bin/make/common/make.rules
+
EXTRA_DIST = \
INSTALL \
ReleaseNotes \
usr/src/OPENSOLARIS.LICENSE \
-usr/src/make_src/Make/bin/make/common/svr4.make.rules.file \
-usr/src/make_src/Make/bin/make/common/make.rules.file
+$(rules)
+
+install-data-hook:
+ $(MKDIR_P) $(DESTDIR)$(datadir)/sunmake
+ for r in $(rules); do \
+ $(INSTALL_DATA) $$r $(DESTDIR)$(datadir)/sunmake ;\
+ done
+uninstall-hook:
+ for r in $(rules); do \
+ rm -f $(DESTDIR)$(datadir)/$$r ;\
+ done
diff --git a/usr/src/make_src/Make/bin/make/common/make.rules.file b/usr/src/make_src/Make/bin/make/common/make.rules
index 3b4b7bf..3b4b7bf 100644
--- a/usr/src/make_src/Make/bin/make/common/make.rules.file
+++ b/usr/src/make_src/Make/bin/make/common/make.rules
diff --git a/usr/src/make_src/Make/bin/make/common/svr4.make.rules.file b/usr/src/make_src/Make/bin/make/common/svr4.make.rules
index 55c9a1d..55c9a1d 100644
--- a/usr/src/make_src/Make/bin/make/common/svr4.make.rules.file
+++ b/usr/src/make_src/Make/bin/make/common/svr4.make.rules