make: include doc files and hpack/cabal files in tags again
[ci skip]
This commit is contained in:
		
							parent
							
								
									550e33a558
								
							
						
					
					
						commit
						8d03adc5ad
					
				
							
								
								
									
										27
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								Makefile
									
									
									
									
									
								
							| @ -151,6 +151,9 @@ MANUALSOURCEFILES:= \ | |||||||
| MANUALGENFILES:= \
 | MANUALGENFILES:= \
 | ||||||
| 	hledger*/hledger*.{1,5,info,txt} \
 | 	hledger*/hledger*.{1,5,info,txt} \
 | ||||||
| 
 | 
 | ||||||
|  | COMMANDHELPFILES:= \
 | ||||||
|  | 	hledger/Hledger/Cli/Commands/*.md \
 | ||||||
|  | 
 | ||||||
| # site/*.md includes website source files and generated web manual files
 | # site/*.md includes website source files and generated web manual files
 | ||||||
| # WEBDOCFILES:= \
 | # WEBDOCFILES:= \
 | ||||||
| # 	site/*.md \
 | # 	site/*.md \
 | ||||||
| @ -163,6 +166,7 @@ WEBCODEFILES:= \ | |||||||
| DOCSOURCEFILES:= \
 | DOCSOURCEFILES:= \
 | ||||||
|   README.md \
 |   README.md \
 | ||||||
| 	$(MANUALSOURCEFILES) \
 | 	$(MANUALSOURCEFILES) \
 | ||||||
|  | 	$(COMMANDHELPFILES) \
 | ||||||
| 
 | 
 | ||||||
| # files which should be updated when the version changes
 | # files which should be updated when the version changes
 | ||||||
| VERSIONSENSITIVEFILES=\
 | VERSIONSENSITIVEFILES=\
 | ||||||
| @ -1605,18 +1609,25 @@ tag: emacstags-ctags \ | |||||||
| 
 | 
 | ||||||
| # Tag haskell files with hasktags and just list the other main source files
 | # Tag haskell files with hasktags and just list the other main source files
 | ||||||
| # so they will be traversed by tags-search/tags-query-replace.
 | # so they will be traversed by tags-search/tags-query-replace.
 | ||||||
| emacstags: | # emacstags:
 | ||||||
| 	rm -f TAGS | # 	rm -f TAGS
 | ||||||
| 	hasktags -e $(SOURCEFILES) | # 	hasktags -e $(SOURCEFILES)
 | ||||||
| 	for f in Makefile $(WEBCODEFILES) $(HPACKFILES) $(CABALFILES) $(DOCSOURCEFILES); do \
 | # 	for f in Makefile $(WEBCODEFILES) $(HPACKFILES) $(CABALFILES) $(DOCSOURCEFILES); do \
 | ||||||
| 		printf "\n$$f,1\n" >> TAGS; \
 | # 		printf "\n$$f,1\n" >> TAGS; \
 | ||||||
| 	done | # 	done
 | ||||||
| 
 | 
 | ||||||
| # Tag haskell files with hasktags and everything else not excluded by .ctags
 | # Tag:
 | ||||||
| # with (exuberant) ctags.
 | # - haskell files, with hasktags
 | ||||||
|  | # - everything else not excluded by .ctags, with (exuberant) ctags
 | ||||||
|  | # - files currently missed by the above, just their names (docs, hpack, cabal..)
 | ||||||
| emacstags-ctags: | emacstags-ctags: | ||||||
| 	hasktags -e $(SOURCEFILES) | 	hasktags -e $(SOURCEFILES) | ||||||
| 	ctags -a -e -R   | 	ctags -a -e -R   | ||||||
|  | 	for f in \
 | ||||||
|  | 		$(DOCSOURCEFILES) \
 | ||||||
|  | 		$(HPACKFILES) \
 | ||||||
|  | 		$(CABALFILES) \
 | ||||||
|  | 	; do printf "\n$$f,1\n" >> TAGS; done | ||||||
| 
 | 
 | ||||||
| cleantags: \ | cleantags: \ | ||||||
| 	$(call def-help-hide,cleantags, remove tag files ) | 	$(call def-help-hide,cleantags, remove tag files ) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user