]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
ui-repolist: Rename section-sort to repository-sort.
[ps-cgit] / Makefile
index 6de072af52a285d5cbc494627cdd295017043310..1e341295f64fc916595ee82f1c41ca24754c1ef2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,7 @@ ifndef V
        QUIET_SUBDIR0  = +@subdir=
        QUIET_SUBDIR1  = ;$(NO_SUBDIR) echo '   ' SUBDIR $$subdir; \
                         $(MAKE) $(PRINT_DIR) -C $$subdir
+       QUIET_TAGS     = @echo '   ' TAGS $@;
 endif
 
 #
@@ -124,7 +125,7 @@ endif
 
 .PHONY: all libgit test install uninstall clean force-version get-git \
        doc clean-doc install-doc install-man install-html install-pdf \
-       uninstall-doc uninstall-man uninstall-html uninstall-pdf
+       uninstall-doc uninstall-man uninstall-html uninstall-pdf tags
 
 all: cgit
 
@@ -198,9 +199,9 @@ install-pdf: doc-pdf
        $(INSTALL) -m 0644 $(DOC_PDF) $(DESTDIR)$(pdfdir)
 
 uninstall:
-       rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
-       rm -f $(CGIT_DATA_PATH)/cgit.css
-       rm -f $(CGIT_DATA_PATH)/cgit.png
+       rm -f $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
+       rm -f $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
+       rm -f $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
 
 uninstall-doc: uninstall-man uninstall-html uninstall-pdf
 
@@ -242,3 +243,6 @@ clean-doc:
 
 get-git:
        curl $(GIT_URL) | tar -xjf - && rm -rf git && mv git-$(GIT_VER) git
+
+tags:
+       $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags