Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 130 lines (103 sloc) 3.134 kb
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
1 # rpg makefile
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
2 .POSIX:
3
b7b3db56 »
2010-03-11 get a Makefile going
4 # Default make target
5 all::
6
8e722205 »
2010-03-15 configure and `make install' basically work but need love
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
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
11 NAME = rpg
b7b3db56 »
2010-03-11 get a Makefile going
12 TARNAME = $(NAME)
13 SHELL = /bin/sh
14
75fe7cac »
2010-03-15 use configured libexecdir when running rpg programs
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)
b7b3db56 »
2010-03-11 get a Makefile going
24
25 # ---- END OF CONFIGURATION ----
26
27 all:: build
28
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
29 SOURCES = \
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
30 rpg-sh-setup.sh rpg.sh rpg-config.sh rpg-fetch.sh rpg-install.sh \
31 rpg-version-test.sh rpg-uninstall.sh rpg-build.sh rpg-env.sh rpg-sync.sh \
32 rpg-resolve.sh rpg-upgrade.sh rpg-steal.sh rpg-fsck.sh rpg-outdated.sh \
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
33 rpg-package-register.sh rpg-package-install.sh rpg-solve.sh rpg-unpack.sh \
89d5b7b7 »
2010-03-17 rpg-help command calls `rpg-$1 --help'
34 rpg-package-spec.rb rpg-parse-index.rb rpg-shit-list.sh rpg-prepare.sh \
471010e8 »
2010-03-17 rpg-package-list now known as rpg-package-index
35 rpg-help.sh rpg-package-index.sh rpg-list.sh
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
36
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
37 DOCHTML = \
38 rpg-sh-setup.html rpg.html rpg-fetch.html rpg-version-test.html \
39 rpg-sync.html rpg-upgrade.html rpg-outdated.html \
40 rpg-package-install.html rpg-package-spec.html rpg-parse-index.html \
41 rpg-list.html
8e722205 »
2010-03-15 configure and `make install' basically work but need love
42
43 PROGRAMPROGRAMS = \
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
44 rpg-config rpg-fetch rpg-install rpg-version-test rpg-uninstall rpg-build \
7f09cdab »
2010-03-17 rpg-status is no more
45 rpg-env rpg-sync rpg-resolve rpg-upgrade rpg-steal rpg-fsck rpg-list \
8bb4a4c7 »
2010-03-17 rpg-parse-package-list now known as rpg-package-list
46 rpg-outdated rpg-package-list rpg-package-register rpg-package-install \
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
47 rpg-solve rpg-unpack rpg-package-spec rpg-parse-index rpg-shit-list \
7f09cdab »
2010-03-17 rpg-status is no more
48 rpg-prepare rpg-complete rpg-help rpg-package-index
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
49
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
50 USERPROGRAMS = rpg rpg-sh-setup
8e722205 »
2010-03-15 configure and `make install' basically work but need love
51
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
52 PROGRAMS = $(USERPROGRAMS) $(PROGRAMPROGRAMS)
b7b3db56 »
2010-03-11 get a Makefile going
53
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
54 .SUFFIXES: .sh .rb .html
55
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
56 .sh:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
57 printf "%13s %-30s" "[SH]" "$@"
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
58 $(SHELL) -n $<
a140d97c »
2010-03-12 make built programs read only
59 rm -f $@
8e722205 »
2010-03-15 configure and `make install' basically work but need love
60 $(RUBY) ./munge.rb __RPGCONFIG__ config.sh <$< >$@+
61 chmod a-w+x $@+
62 mv $@+ $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
63 printf " OK\n"
b7b3db56 »
2010-03-11 get a Makefile going
64
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
65 .sh.html:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
66 printf "%13s %-30s" "[SHOCCO]" "$@"
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
67 shocco $< > $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
68 printf " OK\n"
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
69
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
70 .rb:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
71 printf "%13s %-30s" "[RUBY]" "$@"
72 ruby -c $< >/dev/null
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
73 rm -f $@
74 cp $< $@
75 chmod a-w+x $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
76 printf " OK\n"
77
78 .rb.html:
79 printf "%13s %-30s" "[ROCCO]" "$@"
0e5e9357 »
2010-03-17 docco cleanup, remove undocumented stuff from doc target
80 rocco $< >/dev/null
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
81 printf " OK\n"
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
82
8e722205 »
2010-03-15 configure and `make install' basically work but need love
83 rpg-sh-setup: config.sh munge.rb
75fe7cac »
2010-03-15 use configured libexecdir when running rpg programs
84 rpg: config.sh munge.rb
8e722205 »
2010-03-15 configure and `make install' basically work but need love
85
a140d97c »
2010-03-12 make built programs read only
86 build: $(PROGRAMS)
963426b1 »
2010-03-12 make auto
87
88 auto:
89 while true; do $(MAKE) ; sleep 1; done
b7b3db56 »
2010-03-11 get a Makefile going
90
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
91 doc: $(DOCHTML)
92
8e722205 »
2010-03-15 configure and `make install' basically work but need love
93 install:
94 mkdir -p "$(bindir)" || true
95 for f in $(USERPROGRAMS); do \
96 echo "$(INSTALL_PROGRAM) $$f $(bindir)"; \
97 $(INSTALL_PROGRAM) $$f "$(bindir)"; \
98 done
99 mkdir -p "$(libexecdir)" || true
100 for f in $(PROGRAMPROGRAMS); do \
101 echo "$(INSTALL_PROGRAM) $$f $(libexecdir)"; \
102 $(INSTALL_PROGRAM) $$f "$(libexecdir)"; \
b7b3db56 »
2010-03-11 get a Makefile going
103 done
104
105 uninstall:
8e722205 »
2010-03-15 configure and `make install' basically work but need love
106 for f in $(USERPROGRAMS); do \
3ca09064 »
2010-03-12 fix up install and uninstall make targets
107 test -e "$(bindir)/$$f" || continue; \
8e722205 »
2010-03-15 configure and `make install' basically work but need love
108 echo "rm -f $(bindir)/$$f"; \
109 rm "$(bindir)/$$f"; \
110 done
f06acd50 »
2010-03-17 rpg-update renamed to rpg-sync
111 for f in $(PROGRAMPROGRAMS) rpg-update; do \
8e722205 »
2010-03-15 configure and `make install' basically work but need love
112 test -e "$(libexecdir)/$$f" || continue; \
113 echo "rm -f $(libexecdir)/$$f"; \
114 rm "$(libexecdir)/$$f"; \
b7b3db56 »
2010-03-11 get a Makefile going
115 done
116
578b0d44 »
2010-03-16 make install-local installs to /usr/local and switches to dev environ…
117 install-local:
118 ./configure --prefix=/usr/local
119 sleep 1
120 make
121 make install
122 ./configure --development
123
b7b3db56 »
2010-03-11 get a Makefile going
124 clean:
8e722205 »
2010-03-15 configure and `make install' basically work but need love
125 rm -vf $(PROGRAMS) $(DOCHTML)
b7b3db56 »
2010-03-11 get a Makefile going
126
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
127 .SILENT:
8e722205 »
2010-03-15 configure and `make install' basically work but need love
128
129 .PHONY: install uninstall clean
Something went wrong with that request. Please try again.