File:  [local] / rpl / tools / Makefile.am
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Fri Aug 6 15:33:33 2010 UTC (13 years, 9 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Cohérence

    1: EXTRA_DIST = @NCURSES@.tar.gz @READLINE@.tar.gz @UNITS@.tar.gz @GSL@.tar.gz \
    2:         @GPP@.tar.gz @GNUPLOT@.tar.gz @FILE@.tar.gz @ICONV@.tar.gz \
    3:         @FILE@.diff.gz @SQLITE@.tar.gz @SQLITE@.diff.gz @OPENSSL@.tar.gz
    4: 
    5: subdirs = @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
    6:         @FILE@ @ICONV@ @SQLITE@ @OPENSSL@
    7: 
    8: all:
    9:     TMP=$$(mktemp tmp.XXXXXXXXXX); \
   10:     sed s/DREADLINE/UREADLINE/g @UNITS@/Makefile | \
   11:             sed s/-lreadline//g | sed s/-lncurses//g > $$TMP; \
   12:     \mv -f $$TMP @UNITS@/Makefile
   13:     @list='$(subdirs)'; for subdir in $$list; do \
   14:         echo "Making $@ in $$subdir"; \
   15:         if [ $$subdir = @OPENSSL@ ]; then \
   16:             if [ @OS@ = "OS2" ]; then \
   17:                 $(MAKE) -C $$subdir -j1 -f OS2-EMX.mak2; \
   18:             else \
   19:                 $(MAKE) -C $$subdir -j1 $@; \
   20:             fi; \
   21:         else \
   22:             if [ $$subdir = @GSL@ -a @OS@ = "OS2" ]; then \
   23:                 $(MAKE) -C $(top_builddir) \
   24:                         tools/$(top_builddir)/tools/@GSL@/.libs/libgsl.a; \
   25:             else \
   26:                 $(MAKE) -C $$subdir $@; \
   27:             fi; \
   28:         fi; \
   29:     done;
   30:     if [ ! -f @OPENSSL@/tests_success ]; then \
   31:         if [ @OS@ = "OS2" ]; then \
   32:             (cd @OPENSSL@ && touch tests_success); \
   33:         else \
   34:             (cd @OPENSSL@ && $(MAKE) test && touch tests_success); \
   35:         fi; \
   36:     fi
   37:     $(CC) -o $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
   38:             $(top_builddir)/tools/@FILE@/src/*.o \
   39:             $(shell grep '^LIBS =' $(top_builddir)/tools/@FILE@/Makefile | \
   40:             cut -d= -f2) $(LDFLAGS)
   41: 
   42: clean distclean:
   43:     @list='$(subdirs)'; for subdir in $$list; do \
   44:         echo "Cleaning $$subdir"; \
   45:         if [ ! $$subdir = @OPENSSL@ ]; then \
   46:             $(MAKE) -C $$subdir $@; \
   47:         fi; \
   48:     done;
   49:     if [ -f @OPENSSL@/tests_success ]; then \
   50:         \rm -f @OPENSSL@/tests_success; \
   51:     fi
   52: 
   53: install: all
   54:     $(mkinstalldirs) $(DESTDIR)$(bindir)
   55:     $(INSTALL_PROGRAM) $(UNITS)/units$(EXEEXT) \
   56:             $(DESTDIR)$(bindir)/rplconvert$(EXEEXT)
   57:     $(mkinstalldirs) $(DESTDIR)$(datadir)
   58:     $(INSTALL_DATA) $(srcdir)/$(UNITS)/units.dat $(DESTDIR)$(datadir)/rplunits
   59:     $(INSTALL_PROGRAM) $(GPP)/src/gpp$(EXEEXT) \
   60:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT)
   61:     $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
   62:     $(INSTALL_DATA) $(srcdir)/$(GPP)/doc/gpp.1 $(DESTDIR)$(mandir)/man1
   63:     ln -sf $(DESTDIR)$(mandir)/man1/gpp.1 $(DESTDIR)$(mandir)/man1/rplpp.1
   64:     if [ @GNUPLOT_COMPILATION@ ]; then \
   65:             $(MAKE) $(AM_MAKEFLAGS) -C @GNUPLOT@ $@; fi
   66:     $(INSTALL_DATA) $(FILE)/magic/magic.mgc \
   67:             $(DESTDIR)$(datadir)/rplfiles.mgc
   68:     $(INSTALL_PROGRAM) $(FILE)/src/rplfile$(EXEEXT) \
   69:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   70: 
   71: uninstall:
   72:     \rm -f $(DESTDIR)$(bindir)/rplconvert$(EXEEXT) \
   73:             $(DESTDIR)$(datadir)/rplunits \
   74:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT) \
   75:             $(DESTDIR)$(mandir)/man1/gpp.1 \
   76:             $(DESTDIR)$(mandir)/man1/rplpp.1 \
   77:             $(DESTDIR)$(datadir)/rplfiles.mgc \
   78:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   79: 
   80: install-strip:
   81:     $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install

CVSweb interface <joel.bertrand@systella.fr>