tools: more selective make clean*
This commit is contained in:
		
							parent
							
								
									84a90374b4
								
							
						
					
					
						commit
						33499a9957
					
				
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							| @ -1074,12 +1074,10 @@ tag: emacstags | |||||||
| emacstags: | emacstags: | ||||||
| 	-@rm -f TAGS; hasktags -e $(SOURCEFILES) $(WEBFILES) $(CABALFILES) $(DOCFILES) Makefile | 	-@rm -f TAGS; hasktags -e $(SOURCEFILES) $(WEBFILES) $(CABALFILES) $(DOCFILES) Makefile | ||||||
| 
 | 
 | ||||||
| clean: | cleanghc: | ||||||
| 	rm -rf `find . -name "*.o" -o -name "*.hi" -o -name "*~" | grep -vE '(virthualenv|cabal-sandbox)'` | 	rm -rf `find . -name "*.o" -o -name "*.hi" -o -name "*~" | grep -vE '(virthualenv|cabal-sandbox)'` | ||||||
| 	for p in $(PACKAGES); do \
 | 
 | ||||||
| 		(cd $$p; cabal clean); \
 | cleancabal: allcabalclean | ||||||
| 	done |  | ||||||
| #		rm -f `find $$p -name '*.o' -o -name '*.hi'`; \
 |  | ||||||
| 
 | 
 | ||||||
| cleanbin: | cleanbin: | ||||||
| 	rm -f bin/hledgerdev bin/hledgerdev.ghc* | 	rm -f bin/hledgerdev bin/hledgerdev.ghc* | ||||||
| @ -1087,6 +1085,8 @@ cleanbin: | |||||||
| cleantags: | cleantags: | ||||||
| 	rm -f TAGS tags | 	rm -f TAGS tags | ||||||
| 
 | 
 | ||||||
| Clean: clean cleanbin cleantags | clean: cleanghc cleancabal | ||||||
|  | 
 | ||||||
|  | Clean: cleanghc cleancabal cleanbin cleantags | ||||||
| 
 | 
 | ||||||
| -include Makefile.local | -include Makefile.local | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user