Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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