From 713e8e60dcda8faed31678df18c9f4fb99e8d1f6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 16 Dec 2000 12:14:15 +0000 Subject: [PATCH] Added preliminary install target. --- Makefile.in | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 91a3e13..a00c3b9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -11,7 +11,7 @@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ -libdir = @libdir@ +libdir = @libdir@/petidomo infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ @@ -22,6 +22,7 @@ AR = ar RANLIB = @RANLIB@ LEX = @LEX@ YACC = @YACC@ +INSTALL = ../etc/install-sh CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ @@ -65,6 +66,19 @@ acl.c: acl_scan.c $(LIBS): (cd `echo $@ | sed -e 's@/.*@@'` && $(MAKE) $(FLAGS_TO_PASS)) + + +install: petidomo + if [ ! -d $(bindir) ]; then $(INSTALL) -d $(bindir); fi + $(INSTALL) -c -s -m 555 petidomo $(bindir) + # + if [ ! -d $(libdir) ]; then $(INSTALL) -d $(libdir); fi + $(INSTALL) -c -m 444 ../etc/help $(libdir)/help + # + #if [ ! -d $(sysconfdir) ]; then $(INSTALL) -d $(sysconfdir); fi + #$(INSTALL) -c -m 640 ../etc/master-config $(sysconfdir)/petidomo.conf + #$(INSTALL) -c -m 640 ../etc/master-acl $(sysconfdir)/acl + clean distclean realclean:: @for n in lib*; do (cd $$n && $(MAKE) $@); done