source: CMT/HEAD/mgr/fragments/cleanup_header@ 349

Last change on this file since 349 was 349, checked in by garonne, 19 years ago

add better support for missing target/file during compilation

  • Property svn:eol-style set to native
File size: 568 bytes
Line 
1#-- start of cleanup_header --------------
2
3clean :: ${CONSTITUENT}clean
4 @cd .
5
6ifndef PEDANTIC
7.DEFAULT::
8 @echo "WARNING >> You should provide a target for $@"
9else
10.DEFAULT::
11 @echo "PEDANTIC MODE >> You should provide a target for $@"
12 @if test `expr index $@ '.'` != 0 ; \
13 then echo "PEDANTIC MODE >> This target seems to be a missing file, please check"; exit -1 ;\
14 else echo "PEDANTIC MODE >> Just ignore it ; as it seems to be just a fake target due to some pattern" ; exit 0; fi;
15endif
16
17${CONSTITUENT}clean ::
18#-- end of cleanup_header ---------------
Note: See TracBrowser for help on using the repository browser.