File:  [local] / rpl / tools / Makefile.am
Revision 1.45: download - view: text, annotated - select for diffs - revision graph
Thu Sep 15 19:23:54 2011 UTC (12 years, 7 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Ajout d'OpenMotif et correction des patches précédents. La nouvelle
gestion des signaux semble fonctionner correctement.

    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 @OPENSSL@.tar.gz \
    4:         @OPENMOTIF@.tar.gz @SIGSEGV@.tar.gz \
    5:         @NCURSES@-20110409.patch.gz @NCURSES@-20110416.patch.gz \
    6:         @NCURSES@-20110423.patch.gz @NCURSES@-20110430.patch.gz \
    7:         @NCURSES@-20110507.patch.gz @NCURSES@-20110514.patch.gz \
    8:         @NCURSES@-20110521.patch.gz @NCURSES@-20110528.patch.gz \
    9:         @NCURSES@-20110604.patch.gz @NCURSES@-20110611.patch.gz \
   10:         @NCURSES@-20110625.patch.gz @NCURSES@-20110626.patch.gz \
   11:         @NCURSES@-20110702.patch.gz @NCURSES@-20110716.patch.gz \
   12:         @NCURSES@-20110723.patch.gz @NCURSES@-20110730.patch.gz \
   13:         @NCURSES@-20110807.patch.gz
   14: 
   15: subdirs = @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
   16:         @FILE@ @ICONV@ @SQLITE@ @OPENSSL@ @SIGSEGV@
   17: 
   18: all:
   19:     TMP=$$(mktemp tmp.XXXXXXXXXX); \
   20:     sed -e 's/DREADLINE/UREADLINE/g' @UNITS@/Makefile | \
   21:             sed -e 's/-lreadline//g' | sed -e 's/-lncurses//g' > $$TMP; \
   22:     mv -f $$TMP @UNITS@/Makefile
   23:     @list='$(subdirs)'; for subdir in $$list; do \
   24:         echo "Making $@ in $$subdir"; \
   25:         if [ $$subdir = @OPENSSL@ ]; then \
   26:             if [ @OS@ = "OS2" ]; then \
   27:                 $(MAKE) -C $$subdir -j1 -f OS2-EMX.mak2; \
   28:             else \
   29:                 $(MAKE) -C $$subdir -j1 $@; \
   30:             fi; \
   31:         else \
   32:             if [ $$subdir = @UNITS@ -a @OS@ = OpenBSD ]; then \
   33:                 TMP=$$(mktemp tmp.XXXXXXXXXX); \
   34:                 sed -e 's/^DEFS = -DUNITSFILE/DEFS = -Dmalloc=malloc -DUNITSFILE/g' \
   35:                         @UNITS@/Makefile > $$TMP; \
   36:                 mv -f $$TMP @UNITS@/Makefile; \
   37:             fi; \
   38:             $(MAKE) -C $$subdir $@; \
   39:         fi; \
   40:     done;
   41:     if [ ! -f @OPENSSL@/tests_success ]; then \
   42:         if [ @OS@ = "OS2" ]; then \
   43:             (cd @OPENSSL@ && touch tests_success); \
   44:         else \
   45:             (cd @OPENSSL@ && $(MAKE) -j1 test && touch tests_success); \
   46:         fi; \
   47:     fi
   48: 
   49: clean distclean:
   50:     @list='$(subdirs)'; for subdir in $$list; do \
   51:         echo "Cleaning $$subdir"; \
   52:         if [ ! $$subdir = @OPENSSL@ ]; then \
   53:             $(MAKE) -C $$subdir $@; \
   54:         fi; \
   55:     done;
   56:     if [ -f @OPENSSL@/tests_success ]; then \
   57:         rm -f @OPENSSL@/tests_success; \
   58:     fi
   59: 
   60: install: all
   61:     $(mkinstalldirs) $(DESTDIR)$(bindir)
   62:     $(INSTALL_PROGRAM) $(UNITS)/units$(EXEEXT) \
   63:             $(DESTDIR)$(bindir)/rplconvert$(EXEEXT)
   64:     $(mkinstalldirs) $(DESTDIR)$(datadir)
   65:     $(INSTALL_DATA) $(srcdir)/$(UNITS)/units.dat $(DESTDIR)$(datadir)/rplunits
   66:     $(INSTALL_PROGRAM) $(GPP)/src/gpp$(EXEEXT) \
   67:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT)
   68:     $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
   69:     $(INSTALL_DATA) $(srcdir)/$(GPP)/doc/gpp.1 $(DESTDIR)$(mandir)/man1
   70:     ln -sf $(DESTDIR)$(mandir)/man1/gpp.1 $(DESTDIR)$(mandir)/man1/rplpp.1
   71:     if [ @GNUPLOT_COMPILATION@ ]; then \
   72:             $(MAKE) $(AM_MAKEFLAGS) -C @GNUPLOT@ $@; fi
   73:     $(INSTALL_DATA) $(FILE)/magic/magic.mgc \
   74:             $(DESTDIR)$(datadir)/rplfiles.mgc
   75:     $(INSTALL_PROGRAM) $(FILE)/src/rplfile$(EXEEXT) \
   76:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   77: 
   78: uninstall:
   79:     rm -f $(DESTDIR)$(bindir)/rplconvert$(EXEEXT) \
   80:             $(DESTDIR)$(datadir)/rplunits \
   81:             $(DESTDIR)$(bindir)/rplpp$(EXEEXT) \
   82:             $(DESTDIR)$(mandir)/man1/gpp.1 \
   83:             $(DESTDIR)$(mandir)/man1/rplpp.1 \
   84:             $(DESTDIR)$(datadir)/rplfiles.mgc \
   85:             $(DESTDIR)$(bindir)/rplfile$(EXEEXT)
   86: 
   87: install-strip:
   88:     $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install

CVSweb interface <joel.bertrand@systella.fr>