Skip to contentSkip to conversation

Add ignore and clean rules for gitweb.min.js

PATCH In review Mark Rada 2 participants 2 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore

Mark Rada

author
#0 lore raw

PATCH 1/1 Add ignore and clean rules for gitweb.min.js

---
 .gitignore |    1 +
 Makefile   |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
.gitignore +1 -0
index 7b3acb7..3558dd2 100644
@@ -156,6 +156,7 @@
 /git-core-*/?*
 /gitk-git/gitk-wish
 /gitweb/gitweb.cgi
+/gitweb/gitweb.min.js
 /test-chmtime
 /test-ctype
 /test-date
Makefile +3 -0
index f80b25e..cdf16c2 100644
@@ -2078,6 +2078,9 @@ clean:
 	$(MAKE) -C Documentation/ clean
 ifndef NO_PERL
 	$(RM) gitweb/gitweb.cgi
+ifdef JSMIN
+	$(RM) gitweb/gitweb.min.js
+endif #JSMIN
 	$(MAKE) -C perl clean
 endif
 ifndef NO_PYTHON
Signature · 1 line
1.7.0.2.279.gf1ba1c
#1 lore raw
Quoted 1 line · Mark Rada

Thanks; one question and a comment.

Quoted 10 lines
---
 .gitignore |    1 +
 Makefile   |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
.gitignore +0 -0
index 7b3acb7..3558dd2 100644

.gitignore line 162

Quoted 7 lines
.gitignore +1 -0
@@ -156,6 +156,7 @@
 /git-core-*/?*
 /gitk-git/gitk-wish
 /gitweb/gitweb.cgi
+/gitweb/gitweb.min.js
 /test-chmtime
 /test-ctype
 /test-date

Question: should this be part of your earlier "instaweb" patch, or are they independent?

Makefile clean: · line 2085

Quoted 13 lines
Makefile +3 -0
index f80b25e..cdf16c2 100644
@@ -2078,6 +2078,9 @@ clean:
 	$(MAKE) -C Documentation/ clean
 ifndef NO_PERL
 	$(RM) gitweb/gitweb.cgi
+ifdef JSMIN
+	$(RM) gitweb/gitweb.min.js
+endif #JSMIN
 	$(MAKE) -C perl clean
 endif

Running "make clean" in perl/ should stay in "ifndef NO_PERL", but I think removal of both gitweb/{gitweb.cgi,gitweb.min.js} should be unconditional; it does not hurt as $(RM) is "rm -f" (i.e. don't complain to ENOENT).