File:  [local] / rpl / tools / Makefile.am
Revision 1.24: download - view: text, annotated - select for diffs - revision graph
Mon Sep 13 11:59:11 2010 UTC (13 years, 7 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_0_19, HEAD
Mise à jour de Gnuplot (4.4.0->4.4.1)

    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 -e 's/DREADLINE/UREADLINE/g' @UNITS@/Makefile | \
   11:             sed -e 's/-lreadline//g' | sed -e '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 = @UNITS@ -a @OS@ = OpenBSD ]; then \
   23:                 TMP=$$(mktemp tmp.XXXXXXXXXX); \
   24:                 sed -e 's/^DEFS = -DUNITSFILE/DEFS = -Dmalloc=malloc -DUNITSFILE/g' \
   25:                         @UNITS@/Makefile > $$TMP; \
   26:                 mv -f $$TMP @UNITS@/Makefile; \
   27:             fi; \
   28:             $(MAKE) -C $$subdir $@; \
   29:         fi; \
   30:     done;
   31:     if [ ! -f @OPENSSL@/tests_success ]; then \
   32:         if [ @OS@ = "OS2" ]; then \
   33:             (cd @OPENSSL@ && touch tests_success); \
   34:         else \
   35:             (cd @OPENSSL@ && $(MAKE) test && touch tests_success); \
   36:         fi; \
   37:     fi
   38: 
   39: clean distclean:
   40:     @list='$(subdirs)'; for subdir in $$list; do \
   41:         echo "Cleaning $$subdir"; \
   42:         if [ ! $$subdir = @OPENSSL@ ]; then \
   43:             $(MAKE) -C $$subdir $@; \
   44:         fi; \
   45:     done;
   46:     if [ -f @OPENSSL@/tests_success ]; then \
   47:         rm -f @OPENSSL@/tests_success; \
   48:     fi
   49: 
   50: install: all
   51:     $(mkinstalldirs) $(DESTDIR)$(bindir)
   52:     $(INSTALL_PROGRAM) $(UNITS)/units$(EXEEXT) \
   53:             $(DESTDIR)$(bindir)/rplconvert$(EXEEXT)
   54:     $(mkinstalldirs) $(DESTDIR)$(datadir)
   55:     $(INSTALL_DATA) $(srcdir)/$(UNITS)/units.dat $(DESTDIR)$(datadir)/rplunits
   56:     $(INSTALL_PROGRAM) $(GPP)/src/gpp$(EXEEXT) \
   57:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT)
   58:     $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
   59:     $(INSTALL_DATA) $(srcdir)/$(GPP)/doc/gpp.1 $(DESTDIR)$(mandir)/man1
   60:     ln -sf $(DESTDIR)$(mandir)/man1/gpp.1 $(DESTDIR)$(mandir)/man1/rplpp.1
   61:     if [ @GNUPLOT_COMPILATION@ ]; then \
   62:             $(MAKE) $(AM_MAKEFLAGS) -C @GNUPLOT@ $@; fi
   63:     $(INSTALL_DATA) $(FILE)/magic/magic.mgc \
   64:             $(DESTDIR)$(datadir)/rplfiles.mgc
   65:     $(INSTALL_PROGRAM) $(FILE)/src/rplfile$(EXEEXT) \
   66:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   67: 
   68: uninstall:
   69:     rm -f $(DESTDIR)$(bindir)/rplconvert$(EXEEXT) \
   70:             $(DESTDIR)$(datadir)/rplunits \
   71:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT) \
   72:             $(DESTDIR)$(mandir)/man1/gpp.1 \
   73:             $(DESTDIR)$(mandir)/man1/rplpp.1 \
   74:             $(DESTDIR)$(datadir)/rplfiles.mgc \
   75:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   76: 
   77: install-strip:
   78:     $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install

CVSweb interface <joel.bertrand@systella.fr>