summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0573ba1)
raw | patch | inline | side by side (parent: 0573ba1)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 17 Mar 2008 10:07:05 +0000 (11:07 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 17 Mar 2008 11:37:24 +0000 (12:37 +0100) |
.. by defining sysconfdir to ++SYSCONFDIR++ when building documentation
for the release branch. This also improved quoting of paths during
installation.
Reported by Jakub Narebski.
for the release branch. This also improved quoting of paths during
installation.
Reported by Jakub Narebski.
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c2d6b608ef376c77c1ca5da112bf0b466df76e53..575c5bfa073d1b7928452b580cef0897738ca576 100644 (file)
--- a/Makefile
+++ b/Makefile
install: all
mkdir -p $(DESTDIR)$(bindir) && \
for prog in $(PROGS); do \
- install -p -m 0755 $$prog $(DESTDIR)$(bindir); \
+ install -p -m 0755 "$$prog" "$(DESTDIR)$(bindir)"; \
done
install-doc-man: doc-man
mkdir -p $(DESTDIR)$(mandir)/man1 \
$(DESTDIR)$(mandir)/man5
for doc in $(MANDOC); do \
+ sed 's#++SYSCONFDIR++#$(sysconfdir)#' < "$$doc" > "$$doc+"; \
case "$$doc" in \
- *.1) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man1 ;; \
- *.5) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man5 ;; \
- esac \
+ *.1) install -p -m 0644 "$$doc+" "$(DESTDIR)$(mandir)/man1/$$doc" ;; \
+ *.5) install -p -m 0644 "$$doc+" "$(DESTDIR)$(mandir)/man5/$$doc" ;; \
+ esac; \
+ $(RM) "$$doc+"; \
done
install-doc-html: doc-html
mkdir -p $(DESTDIR)$(docdir)/tig
for doc in $(HTMLDOC); do \
+ sed 's#++SYSCONFDIR++#$(sysconfdir)#' < "$$doc" > "$$doc+"; \
case "$$doc" in \
- *.html) install -p -m 0644 $$doc $(DESTDIR)$(docdir)/tig ;; \
- esac \
+ *.html) install -p -m 0644 "$$doc+" "$(DESTDIR)$(docdir)/tig/$$doc" ;; \
+ esac; \
+ $(RM) "$$doc+"; \
done
install-doc: install-doc-man install-doc-html
tar rf $(TARNAME).tar `find $(TARNAME)/*` && \
gzip -f -9 $(TARNAME).tar && \
md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
- @rm -rf $(TARNAME)
+ @$(RM) -r $(TARNAME)
rpm: dist
rpmbuild -ta $(TARNAME).tar.gz
release-doc:
git checkout release && \
git merge master && \
- $(MAKE) distclean doc-man doc-html && \
+ $(MAKE) distclean doc-man doc-html sysconfdir=++SYSCONFDIR++ && \
git add -f $(MANDOC) $(HTMLDOC) && \
git commit -m "Sync docs" && \
git checkout master