Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 132 lines (105 sloc) 3.134 kB
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
1 # rpg makefile
2cce0fd @rtomayko use .sh extension and more idiomatic use of make
authored
2 .POSIX:
3
b7b3db5 @rtomayko get a Makefile going
authored
4 # Default make target
5 all::
6
8e72220 @rtomayko configure and `make install' basically work but need love
authored
7 # XXX include isn't POSIX but I don't feel like dealing with it right now.
8 # we'll move to a separate Makefile.in eventually.
9 include config.mk
10
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
11 NAME = rpg
b7b3db5 @rtomayko get a Makefile going
authored
12 TARNAME = $(NAME)
13 SHELL = /bin/sh
14
75fe7ca @rtomayko use configured libexecdir when running rpg programs
authored
15 # srcdir = .
16 # prefix = /usr/local
17 # exec_prefix = ${prefix}
18 # bindir = ${exec_prefix}/bin
19 # libexecdir = ${exec_prefix}/libexec
20 # datarootdir = ${prefix}/share
21 # datadir = ${datarootdir}
22 # mandir = ${datarootdir}/man
23 # docdir = $(datadir)/doc/$(TARNAME)
b7b3db5 @rtomayko get a Makefile going
authored
24
25 # ---- END OF CONFIGURATION ----
26
27 all:: build
28
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
29 SOURCES = \
3842f4d @rtomayko get rid of rpg-deps -- good riddance
authored
30 rpg-sh-setup.sh rpg.sh rpg-config.sh rpg-fetch.sh \
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
31 rpg-install.sh rpg-list.sh rpg-version-test.sh rpg-uninstall.sh \
f06acd5 @rtomayko rpg-update renamed to rpg-sync
authored
32 rpg-build.sh rpg-env.sh rpg-sync.sh rpg-resolve.sh rpg-upgrade.sh \
e59261f @rtomayko split package registration and installation into separate programs
authored
33 rpg-steal.sh rpg-fsck.sh rpg-status.sh rpg-outdated.sh \
eb3ac03 @rtomayko rpg-package-spec does everything gemspec related
authored
34 rpg-package-register.sh rpg-package-install.sh rpg-solve.sh rpg-unpack.sh \
89d5b7b @rtomayko rpg-help command calls `rpg-$1 --help'
authored
35 rpg-package-spec.rb rpg-parse-index.rb rpg-shit-list.sh rpg-prepare.sh \
36 rpg-help.sh
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
37
8e72220 @rtomayko configure and `make install' basically work but need love
authored
38 USERPROGRAMS = rpg rpg-sh-setup
39
40 PROGRAMPROGRAMS = \
41 rpg-config rpg-fetch \
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
42 rpg-install rpg-list rpg-version-test rpg-uninstall \
f06acd5 @rtomayko rpg-update renamed to rpg-sync
authored
43 rpg-build rpg-env rpg-sync rpg-resolve rpg-upgrade \
e59261f @rtomayko split package registration and installation into separate programs
authored
44 rpg-steal rpg-fsck rpg-status rpg-outdated rpg-parse-package-list \
eb3ac03 @rtomayko rpg-package-spec does everything gemspec related
authored
45 rpg-package-register rpg-package-install rpg-solve rpg-unpack \
e1f64a0 @rtomayko rpg-complete and bash completion script under misc/
authored
46 rpg-package-spec rpg-parse-index rpg-shit-list rpg-prepare \
89d5b7b @rtomayko rpg-help command calls `rpg-$1 --help'
authored
47 rpg-complete rpg-help
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
48
8e72220 @rtomayko configure and `make install' basically work but need love
authored
49 PROGRAMS = $(USERPROGRAMS) $(PROGRAMPROGRAMS)
50
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
51 DOCHTML = \
0e5e935 @rtomayko docco cleanup, remove undocumented stuff from doc target
authored
52 rpg-sh-setup.html rpg.html rpg-fetch.html rpg-version-test.html \
53 rpg-sync.html rpg-upgrade.html rpg-status.html rpg-outdated.html \
54 rpg-package-install.html rpg-package-spec.html rpg-parse-index.html
b7b3db5 @rtomayko get a Makefile going
authored
55
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
56 .SUFFIXES: .sh .rb .html
57
2cce0fd @rtomayko use .sh extension and more idiomatic use of make
authored
58 .sh:
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
59 printf "%13s %-30s" "[SH]" "$@"
2cce0fd @rtomayko use .sh extension and more idiomatic use of make
authored
60 $(SHELL) -n $<
a140d97 @rtomayko make built programs read only
authored
61 rm -f $@
8e72220 @rtomayko configure and `make install' basically work but need love
authored
62 $(RUBY) ./munge.rb __RPGCONFIG__ config.sh <$< >$@+
63 chmod a-w+x $@+
64 mv $@+ $@
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
65 printf " OK\n"
b7b3db5 @rtomayko get a Makefile going
authored
66
3fda91e @rtomayko makefile uses implicit rules for .sh and .html shocco docs
authored
67 .sh.html:
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
68 printf "%13s %-30s" "[SHOCCO]" "$@"
3fda91e @rtomayko makefile uses implicit rules for .sh and .html shocco docs
authored
69 shocco $< > $@
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
70 printf " OK\n"
3fda91e @rtomayko makefile uses implicit rules for .sh and .html shocco docs
authored
71
eb3ac03 @rtomayko rpg-package-spec does everything gemspec related
authored
72 .rb:
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
73 printf "%13s %-30s" "[RUBY]" "$@"
74 ruby -c $< >/dev/null
eb3ac03 @rtomayko rpg-package-spec does everything gemspec related
authored
75 rm -f $@
76 cp $< $@
77 chmod a-w+x $@
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
78 printf " OK\n"
79
80 .rb.html:
81 printf "%13s %-30s" "[ROCCO]" "$@"
0e5e935 @rtomayko docco cleanup, remove undocumented stuff from doc target
authored
82 rocco $< >/dev/null
78b3983 @rtomayko rpg-parse-index converts modern gemspec index to parseable format
authored
83 printf " OK\n"
eb3ac03 @rtomayko rpg-package-spec does everything gemspec related
authored
84
8e72220 @rtomayko configure and `make install' basically work but need love
authored
85 rpg-sh-setup: config.sh munge.rb
75fe7ca @rtomayko use configured libexecdir when running rpg programs
authored
86 rpg: config.sh munge.rb
8e72220 @rtomayko configure and `make install' basically work but need love
authored
87
a140d97 @rtomayko make built programs read only
authored
88 build: $(PROGRAMS)
963426b @rtomayko make auto
authored
89
90 auto:
91 while true; do $(MAKE) ; sleep 1; done
b7b3db5 @rtomayko get a Makefile going
authored
92
3fda91e @rtomayko makefile uses implicit rules for .sh and .html shocco docs
authored
93 doc: $(DOCHTML)
94
8e72220 @rtomayko configure and `make install' basically work but need love
authored
95 install:
96 mkdir -p "$(bindir)" || true
97 for f in $(USERPROGRAMS); do \
98 echo "$(INSTALL_PROGRAM) $$f $(bindir)"; \
99 $(INSTALL_PROGRAM) $$f "$(bindir)"; \
100 done
101 mkdir -p "$(libexecdir)" || true
102 for f in $(PROGRAMPROGRAMS); do \
103 echo "$(INSTALL_PROGRAM) $$f $(libexecdir)"; \
104 $(INSTALL_PROGRAM) $$f "$(libexecdir)"; \
b7b3db5 @rtomayko get a Makefile going
authored
105 done
106
107 uninstall:
8e72220 @rtomayko configure and `make install' basically work but need love
authored
108 for f in $(USERPROGRAMS); do \
3ca0906 @rtomayko fix up install and uninstall make targets
authored
109 test -e "$(bindir)/$$f" || continue; \
8e72220 @rtomayko configure and `make install' basically work but need love
authored
110 echo "rm -f $(bindir)/$$f"; \
111 rm "$(bindir)/$$f"; \
112 done
f06acd5 @rtomayko rpg-update renamed to rpg-sync
authored
113 for f in $(PROGRAMPROGRAMS) rpg-update; do \
8e72220 @rtomayko configure and `make install' basically work but need love
authored
114 test -e "$(libexecdir)/$$f" || continue; \
115 echo "rm -f $(libexecdir)/$$f"; \
116 rm "$(libexecdir)/$$f"; \
b7b3db5 @rtomayko get a Makefile going
authored
117 done
118
578b0d4 @rtomayko make install-local installs to /usr/local and switches to dev environ…
authored
119 install-local:
120 ./configure --prefix=/usr/local
121 sleep 1
122 make
123 make install
124 ./configure --development
125
b7b3db5 @rtomayko get a Makefile going
authored
126 clean:
8e72220 @rtomayko configure and `make install' basically work but need love
authored
127 rm -vf $(PROGRAMS) $(DOCHTML)
b7b3db5 @rtomayko get a Makefile going
authored
128
2cce0fd @rtomayko use .sh extension and more idiomatic use of make
authored
129 .SILENT:
8e72220 @rtomayko configure and `make install' basically work but need love
authored
130
131 .PHONY: install uninstall clean
Something went wrong with that request. Please try again.