Ignore:
Timestamp:
Mar 8, 2013 1:07:32 PM (8 years ago)
Author:
ldelgass
Message:

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/Makefile.in

    r2175 r3471  
    2929                zoo
    3030
     31.PHONY: all install clean distclean $(SUBDIRS)
    3132
    32 .PHONY:         $(SUBDIRS)
    33 
    34 all:  build
    35 
    36 build:
     33all:
    3734        for i in $(SUBDIRS) ; do \
    3835            $(MAKE) -C $$i all || exit 1 ; \
    3936        done
    4037
    41 install: 
     38install:
    4239        $(MKDIR_P) -m 0755 $(destdir)
    4340        for i in $(FILES) ; do \
     
    5855        done
    5956        $(RM) Makefile *~
    60 
Note: See TracChangeset for help on using the changeset viewer.