| Last change
                  on this file was
                  18120,
                  checked in by westram, 6 years ago | 
        
          | add new target 'cleanRelinkable':
removes libs, executables + tests to reduce size of WC (esp. in sanitized builds).
avoid 'cleanRelinkable' causes rebuild (esp. rebuild of RaxML8).
fix bogus-error when target 'clean' in UNIT_TESTER got called.
 | 
        
          | 
              
                  Property svn:eol-style set to
                  native
                  Property svn:keywords set to
                  Author Date Id Revision | 
        | File size:
            1.5 KB | 
      
      
        
  | Line |  | 
|---|
| 1 |  | 
|---|
| 2 | .PHONY: help all develall mafftlinks scriptlinks devellinks clean cleanbinaries cleanlinks | 
|---|
| 3 |  | 
|---|
| 4 | help: | 
|---|
| 5 | @echo 'Known targets:' | 
|---|
| 6 | @echo '' | 
|---|
| 7 | @echo '  all          create all links to binaries in: SH PERL_SCRIPTS' | 
|---|
| 8 | @echo '  develall     create links to arb_binaries in: SOURCE_TOOLS (development only)' | 
|---|
| 9 | @echo '  clean:       remove all executables and links' | 
|---|
| 10 | @echo '  cleanlinks:  remove all links' | 
|---|
| 11 |  | 
|---|
| 12 | # ---------------------------------------- | 
|---|
| 13 |  | 
|---|
| 14 | all: autoremove | 
|---|
| 15 | $(MAKE) scriptlinks mafftlinks | 
|---|
| 16 |  | 
|---|
| 17 | develall: autoremove | 
|---|
| 18 | $(MAKE) scriptlinks mafftlinks devellinks | 
|---|
| 19 |  | 
|---|
| 20 | # ---------------------------------------- | 
|---|
| 21 | # autoremove no-longer-made binaries | 
|---|
| 22 | # (to avoid need to make clean) | 
|---|
| 23 |  | 
|---|
| 24 | AUTOREMOVE=arb_notify | 
|---|
| 25 |  | 
|---|
| 26 | autoremove: | 
|---|
| 27 | @rm -f $(AUTOREMOVE) | 
|---|
| 28 |  | 
|---|
| 29 | # ---------------------------------------- | 
|---|
| 30 |  | 
|---|
| 31 | MAFFTLINKS= \ | 
|---|
| 32 | mafft-einsi \ | 
|---|
| 33 | mafft-fftns \ | 
|---|
| 34 | mafft-fftnsi \ | 
|---|
| 35 | mafft-ginsi \ | 
|---|
| 36 | mafft-linsi \ | 
|---|
| 37 | mafft-nwns \ | 
|---|
| 38 | mafft-nwnsi \ | 
|---|
| 39 | mafft-qinsi \ | 
|---|
| 40 | mafft-xinsi \ | 
|---|
| 41 |  | 
|---|
| 42 | mafft-%: | 
|---|
| 43 | ln -s -f mafft $@ | 
|---|
| 44 |  | 
|---|
| 45 | mafftlinks: $(MAFFTLINKS) | 
|---|
| 46 |  | 
|---|
| 47 | scriptlinks: | 
|---|
| 48 | ln -s -f `find ../SH           -perm -100 ! -type d -print` . | 
|---|
| 49 | ln -s -f `find ../PERL_SCRIPTS -perm -100 ! -type d ! -path '*/IFTHELP/*' ! -path '*/TESTS/*' -print` . | 
|---|
| 50 |  | 
|---|
| 51 | devellinks: | 
|---|
| 52 | ln -s -f `find ../SOURCE_TOOLS -name "arb_*" -perm -100 ! -type d -print` . | 
|---|
| 53 |  | 
|---|
| 54 | # ---------------------------------------- | 
|---|
| 55 | clean: cleanlinks cleanbinaries | 
|---|
| 56 |  | 
|---|
| 57 | cleanbinaries: | 
|---|
| 58 | -find . -type f -perm -100 -exec rm {} \; | 
|---|
| 59 |  | 
|---|
| 60 | # like cleanbinaries, but skip some that require expensive rebuilds | 
|---|
| 61 | cleanbinariesRelinkable: | 
|---|
| 62 | -find . -type f -perm -100 ! \( -name "*raxml*" \) -exec rm {} \; | 
|---|
| 63 |  | 
|---|
| 64 | cleanlinks: | 
|---|
| 65 | -find . -type l -exec rm {} \; | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.