Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/xdg-utils/scripts/Makefile.in

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/xdg-utils/scripts/HACKING ('k') | third_party/xdg-utils/scripts/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/xdg-utils/scripts/Makefile.in
===================================================================
--- third_party/xdg-utils/scripts/Makefile.in (revision 0)
+++ third_party/xdg-utils/scripts/Makefile.in (revision 0)
@@ -0,0 +1,112 @@
+MKDIR = mkdir -p
+RMDIR = rmdir
+INSTALL = @INSTALL@ $(INSTALL_FLAGS)
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
+INSTALL_LIBRARY = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
+INSTALL_SCRIPT = @INSTALL_SCRIPT@ $(INSTALL_SCRIPT_FLAGS)
+INSTALL_DATA = @INSTALL_DATA@ $(INSTALL_DATA_FLAGS)
+XMLTO = @XMLTO@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+mandir = @mandir@
+
+SCRIPTS = \
+ xdg-desktop-menu \
+ xdg-desktop-icon \
+ xdg-mime \
+ xdg-icon-resource \
+ xdg-open \
+ xdg-email \
+ xdg-screensaver
+# xdg-su
+# xdg-copy \
+# xdg-file-dialog
+# xdg-terminal
+
+MANPAGES= $(SCRIPTS:%=man/%.1)
+WEBPAGES= $(SCRIPTS:%=%.html)
+XMLFILES= $(SCRIPTS:%=desc/%.xml)
+
+all:
+
+html: index.html $(WEBPAGES)
+
+scripts: README $(SCRIPTS)
+
+man: $(MANPAGES)
+
+release: scripts html man
+ rm -f xdg-*.in *~ HACKING generate-help-script.awk
+ rm -rf desc/
+ rm -rf xsl/
+ rm -f xdg-file-dialog xdg-su xdg-copy xdg-terminal
+
+distclean: clean
+ rm -f Makefile
+
+clean:
+
+scripts-clean:
+ rm -f $(SCRIPTS) README man/xdg-*.1 html/xdg-*.html
+
+README: $(SCRIPTS)
+ echo > $@
+ @for x in $(SCRIPTS) ; do \
+ sh ./$$x --help | grep -B 100 Synopsis | sed -e '$$d' >> $@ ; \
+ done
+
+install:
+ $(MKDIR) $(DESTDIR)$(bindir)
+ for x in $(SCRIPTS) ; do \
+ $(INSTALL_SCRIPT) $$x $(DESTDIR)$(bindir) ; \
+ done
+ $(MKDIR) $(DESTDIR)$(mandir)
+ $(MKDIR) $(DESTDIR)$(mandir)/man1
+ for x in $(MANPAGES) ; do \
+ $(INSTALL_DATA) $$x $(DESTDIR)$(mandir)/man1 ; \
+ done
+
+uninstall:
+ for x in $(MANPAGES) ; do \
+ rm -f $(DESTDIR)$(mandir)/man1/`basename $$x` ; \
+ done
+ -$(RMDIR) $(DESTDIR)$(mandir)/man1
+ -$(RMDIR) $(DESTDIR)$(mandir)
+ for x in $(SCRIPTS) ; do \
+ rm -f $(DESTDIR)$(bindir)/$$x ; \
+ done
+ -$(RMDIR) $(DESTDIR)$(bindir)
+
+%: %.in %.txt
+ awk -f generate-help-script.awk $@.in | sed -e 's/@NAME@/'$@'/g' > $@
+ chmod a+x $@
+
+xdg-desktop-menu: xdg-desktop-menu.in xdg-utils-common.in
+xdg-desktop-icon: xdg-desktop-icon.in xdg-utils-common.in
+xdg-email: xdg-email.in xdg-utils-common.in
+xdg-mime: xdg-mime.in xdg-utils-common.in
+xdg-open: xdg-open.in xdg-utils-common.in
+xdg-screensaver: xdg-screensaver.in xdg-utils-common.in
+xdg-icon-resource: xdg-icon-resource.in xdg-utils-common.in
+
+xdg-su: xdg-su.in xdg-utils-common.in
+xdg-copy: xdg-copy.in xdg-utils-common.in
+xdg-file-dialog: xdg-file-dialog.in xdg-utils-common.in
+xdg-terminal: xdg-terminal.in xdg-utils-common.in
+
+man/%.1: desc/%.xml
+ (cd man;$(XMLTO) man ../$<)
+
+index.html: $(XMLFILES)
+ (cat html/index.html.pre; \
+ xsltproc xsl/refentry2htmlindex.xsl $(XMLFILES); \
+ cat html/index.html.post ) > html/index.html
+
+%.html: desc/%.xml
+ (cd html;$(XMLTO) html-nochunks ../$<)
+
+%.txt: desc/%.xml
+ $(XMLTO) txt $<
+
« no previous file with comments | « third_party/xdg-utils/scripts/HACKING ('k') | third_party/xdg-utils/scripts/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698