]> www.ginac.de Git - cln.git/blobdiff - Makefile.in
* configure.in: adjust lt-versions, taking into account that a
[cln.git] / Makefile.in
index 2e64d21dcd1885b4230a3a02eb70524c6148695b..f4c2bebdc9fcdf4cabbe963f9b4890bb1f62cd8a 100644 (file)
@@ -11,11 +11,13 @@ datadir = @datadir@
 libdir = @libdir@
 includedir = @includedir@
 mandir = @mandir@
+DESTDIR =
 
 # Programs used by "make":
 CC = @CC@
 CFLAGS = @CFLAGS@
 RM = rm -f
+MKDIR = mkdir -p
 @SET_MAKE@
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -31,22 +33,21 @@ all : force
 
 install : installdirs force
        cd @subdir@; $(MAKE) install
-       $(INSTALL_PROGRAM) cln-config $(bindir)/cln-config
-       $(INSTALL_DATA) cln-config.1 $(mandir)/man1/cln-config.1
-       $(INSTALL_DATA) cln.m4 $(datadir)/aclocal/cln.m4
+       $(INSTALL_PROGRAM) cln-config $(DESTDIR)$(bindir)/cln-config
+       $(INSTALL_DATA) cln-config.1 $(DESTDIR)$(mandir)/man1/cln-config.1
+       $(INSTALL_DATA) cln.m4 $(DESTDIR)$(datadir)/aclocal/cln.m4
 
 installdirs : force
        cd @subdir@; $(MAKE) installdirs
-       if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
-       if [ ! -d $(mandir)/man1 ] ; then mkdir $(mandir)/man1 ; fi
-       if [ ! -d $(datadir)/aclocal ] ; then mkdir $(datadir)/aclocal ; fi
-       if [ ! -d $(bindir) ] ; then mkdir $(bindir) ; fi
+       $(MKDIR) $(DESTDIR)$(mandir)/man1
+       $(MKDIR) $(DESTDIR)$(datadir)/aclocal
+       $(MKDIR) $(DESTDIR)$(bindir)
 
 uninstall : force
        cd @subdir@; $(MAKE) uninstall
-       $(RM) $(bindir)/cln-config
-       $(RM) $(mandir)/man1/cln-config.1
-       $(RM) $(datadir)/aclocal/cln.m4
+       $(RM) $(DESTDIR)$(bindir)/cln-config
+       $(RM) $(DESTDIR)$(mandir)/man1/cln-config.1
+       $(RM) $(DESTDIR)$(datadir)/aclocal/cln.m4
 
 check : force
        cd @subdir@; $(MAKE) check
@@ -67,7 +68,7 @@ distclean : force
 maintainer-clean : force
        cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi
        $(RM) config.status config.log config.cache Makefile
-       $(RM) cln-config
+       $(RM) cln-config cln-config.1 cln.spec
        $(RM) libtool
        $(RM) include/cln/config.h include/cln/intparam.h include/cln/floatparam.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h