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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/xdg-utils/scripts/HACKING ('k') | third_party/xdg-utils/scripts/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 MKDIR = mkdir -p
2 RMDIR = rmdir
3 INSTALL = @INSTALL@ $(INSTALL_FLAGS)
4 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
5 INSTALL_LIBRARY = @INSTALL_PROGRAM@ $(INSTALL_PROGRAM_FLAGS)
6 INSTALL_SCRIPT = @INSTALL_SCRIPT@ $(INSTALL_SCRIPT_FLAGS)
7 INSTALL_DATA = @INSTALL_DATA@ $(INSTALL_DATA_FLAGS)
8 XMLTO = @XMLTO@
9
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 bindir = @bindir@
13 mandir = @mandir@
14
15 SCRIPTS = \
16 xdg-desktop-menu \
17 xdg-desktop-icon \
18 xdg-mime \
19 xdg-icon-resource \
20 xdg-open \
21 xdg-email \
22 xdg-screensaver
23 # xdg-su
24 # xdg-copy \
25 # xdg-file-dialog
26 # xdg-terminal
27
28 MANPAGES= $(SCRIPTS:%=man/%.1)
29 WEBPAGES= $(SCRIPTS:%=%.html)
30 XMLFILES= $(SCRIPTS:%=desc/%.xml)
31
32 all:
33
34 html: index.html $(WEBPAGES)
35
36 scripts: README $(SCRIPTS)
37
38 man: $(MANPAGES)
39
40 release: scripts html man
41 rm -f xdg-*.in *~ HACKING generate-help-script.awk
42 rm -rf desc/
43 rm -rf xsl/
44 rm -f xdg-file-dialog xdg-su xdg-copy xdg-terminal
45
46 distclean: clean
47 rm -f Makefile
48
49 clean:
50
51 scripts-clean:
52 rm -f $(SCRIPTS) README man/xdg-*.1 html/xdg-*.html
53
54 README: $(SCRIPTS)
55 echo > $@
56 @for x in $(SCRIPTS) ; do \
57 sh ./$$x --help | grep -B 100 Synopsis | sed -e '$$d' >> $@ ; \
58 done
59
60 install:
61 $(MKDIR) $(DESTDIR)$(bindir)
62 for x in $(SCRIPTS) ; do \
63 $(INSTALL_SCRIPT) $$x $(DESTDIR)$(bindir) ; \
64 done
65 $(MKDIR) $(DESTDIR)$(mandir)
66 $(MKDIR) $(DESTDIR)$(mandir)/man1
67 for x in $(MANPAGES) ; do \
68 $(INSTALL_DATA) $$x $(DESTDIR)$(mandir)/man1 ; \
69 done
70
71 uninstall:
72 for x in $(MANPAGES) ; do \
73 rm -f $(DESTDIR)$(mandir)/man1/`basename $$x` ; \
74 done
75 -$(RMDIR) $(DESTDIR)$(mandir)/man1
76 -$(RMDIR) $(DESTDIR)$(mandir)
77 for x in $(SCRIPTS) ; do \
78 rm -f $(DESTDIR)$(bindir)/$$x ; \
79 done
80 -$(RMDIR) $(DESTDIR)$(bindir)
81
82 %: %.in %.txt
83 awk -f generate-help-script.awk $@.in | sed -e 's/@NAME@/'$@'/g' > $@
84 chmod a+x $@
85
86 xdg-desktop-menu: xdg-desktop-menu.in xdg-utils-common.in
87 xdg-desktop-icon: xdg-desktop-icon.in xdg-utils-common.in
88 xdg-email: xdg-email.in xdg-utils-common.in
89 xdg-mime: xdg-mime.in xdg-utils-common.in
90 xdg-open: xdg-open.in xdg-utils-common.in
91 xdg-screensaver: xdg-screensaver.in xdg-utils-common.in
92 xdg-icon-resource: xdg-icon-resource.in xdg-utils-common.in
93
94 xdg-su: xdg-su.in xdg-utils-common.in
95 xdg-copy: xdg-copy.in xdg-utils-common.in
96 xdg-file-dialog: xdg-file-dialog.in xdg-utils-common.in
97 xdg-terminal: xdg-terminal.in xdg-utils-common.in
98
99 man/%.1: desc/%.xml
100 (cd man;$(XMLTO) man ../$<)
101
102 index.html: $(XMLFILES)
103 (cat html/index.html.pre; \
104 xsltproc xsl/refentry2htmlindex.xsl $(XMLFILES); \
105 cat html/index.html.post ) > html/index.html
106
107 %.html: desc/%.xml
108 (cd html;$(XMLTO) html-nochunks ../$<)
109
110 %.txt: desc/%.xml
111 $(XMLTO) txt $<
112
OLDNEW
« 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