Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 130 lines (102 sloc) 3.034 kb
4b1ed8b Ryan Tomayko s/pgem/rpg/g on entire project
authored
1 # rpg makefile
2cce0fd Ryan Tomayko use .sh extension and more idiomatic use of make
authored
2 .POSIX:
3
b7b3db5 Ryan Tomayko get a Makefile going
authored
4 # Default make target
5 all::
6
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
7 include config.mk
8
4b1ed8b Ryan Tomayko s/pgem/rpg/g on entire project
authored
9 NAME = rpg
b7b3db5 Ryan Tomayko get a Makefile going
authored
10 TARNAME = $(NAME)
11 SHELL = /bin/sh
12
472b1e5 Ryan Tomayko first crack at fast version solver in C
authored
13 CFLAGS = -Wall -pedantic
b7b3db5 Ryan Tomayko get a Makefile going
authored
14
15 # ---- END OF CONFIGURATION ----
16
17 all:: build
18
4b1ed8b Ryan Tomayko s/pgem/rpg/g on entire project
authored
19 SOURCES = \
b94a9ef Ryan Tomayko rpg-status is now known as rpg-list
authored
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 \
eb3ac03 Ryan Tomayko rpg-package-spec does everything gemspec related
authored
23 rpg-package-register.sh rpg-package-install.sh rpg-solve.sh rpg-unpack.sh \
89d5b7b Ryan Tomayko rpg-help command calls `rpg-$1 --help'
authored
24 rpg-package-spec.rb rpg-parse-index.rb rpg-shit-list.sh rpg-prepare.sh \
dec24f2 Ryan Tomayko rpg-leaves shows installed packages no other package depends on
authored
25 rpg-help.sh rpg-package-index.sh rpg-list.sh rpg-dependencies.sh \
472b1e5 Ryan Tomayko first crack at fast version solver in C
authored
26 rpg-leaves.sh rpg-solve-fast.c
4b1ed8b Ryan Tomayko s/pgem/rpg/g on entire project
authored
27
b94a9ef Ryan Tomayko rpg-status is now known as rpg-list
authored
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
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
33
34 PROGRAMPROGRAMS = \
b94a9ef Ryan Tomayko rpg-status is now known as rpg-list
authored
35 rpg-config rpg-fetch rpg-install rpg-version-test rpg-uninstall rpg-build \
7f09cda Ryan Tomayko rpg-status is no more
authored
36 rpg-env rpg-sync rpg-resolve rpg-upgrade rpg-steal rpg-fsck rpg-list \
8bb4a4c Ryan Tomayko rpg-parse-package-list now known as rpg-package-list
authored
37 rpg-outdated rpg-package-list rpg-package-register rpg-package-install \
b94a9ef Ryan Tomayko rpg-status is now known as rpg-list
authored
38 rpg-solve rpg-unpack rpg-package-spec rpg-parse-index rpg-shit-list \
dec24f2 Ryan Tomayko rpg-leaves shows installed packages no other package depends on
authored
39 rpg-prepare rpg-complete rpg-help rpg-package-index rpg-dependencies \
472b1e5 Ryan Tomayko first crack at fast version solver in C
authored
40 rpg-leaves rpg-solve-fast
4b1ed8b Ryan Tomayko s/pgem/rpg/g on entire project
authored
41
b94a9ef Ryan Tomayko rpg-status is now known as rpg-list
authored
42 USERPROGRAMS = rpg rpg-sh-setup
b5854bd Ryan Tomayko get manpage build stuff going
authored
43 PROGRAMS = $(USERPROGRAMS) $(PROGRAMPROGRAMS)
b7b3db5 Ryan Tomayko get a Makefile going
authored
44
472b1e5 Ryan Tomayko first crack at fast version solver in C
authored
45 .SUFFIXES: .sh .rb .html .c
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
46
2cce0fd Ryan Tomayko use .sh extension and more idiomatic use of make
authored
47 .sh:
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
48 printf "%13s %-30s" "[SH]" "$@"
2cce0fd Ryan Tomayko use .sh extension and more idiomatic use of make
authored
49 $(SHELL) -n $<
a140d97 Ryan Tomayko make built programs read only
authored
50 rm -f $@
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
51 $(RUBY) ./munge.rb __RPGCONFIG__ config.sh <$< >$@+
52 chmod a-w+x $@+
53 mv $@+ $@
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
54 printf " OK\n"
b7b3db5 Ryan Tomayko get a Makefile going
authored
55
3fda91e Ryan Tomayko makefile uses implicit rules for .sh and .html shocco docs
authored
56 .sh.html:
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
57 printf "%13s %-30s" "[SHOCCO]" "$@"
3fda91e Ryan Tomayko makefile uses implicit rules for .sh and .html shocco docs
authored
58 shocco $< > $@
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
59 printf " OK\n"
3fda91e Ryan Tomayko makefile uses implicit rules for .sh and .html shocco docs
authored
60
eb3ac03 Ryan Tomayko rpg-package-spec does everything gemspec related
authored
61 .rb:
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
62 printf "%13s %-30s" "[RUBY]" "$@"
63 ruby -c $< >/dev/null
eb3ac03 Ryan Tomayko rpg-package-spec does everything gemspec related
authored
64 rm -f $@
65 cp $< $@
66 chmod a-w+x $@
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
67 printf " OK\n"
68
69 .rb.html:
70 printf "%13s %-30s" "[ROCCO]" "$@"
0e5e935 Ryan Tomayko docco cleanup, remove undocumented stuff from doc target
authored
71 rocco $< >/dev/null
78b3983 Ryan Tomayko rpg-parse-index converts modern gemspec index to parseable format
authored
72 printf " OK\n"
eb3ac03 Ryan Tomayko rpg-package-spec does everything gemspec related
authored
73
472b1e5 Ryan Tomayko first crack at fast version solver in C
authored
74 .c:
75 printf "%13s %-30s" "[CC]" "$@"
76 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
77 printf " OK\n"
78
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
79 rpg-sh-setup: config.sh munge.rb
75fe7ca Ryan Tomayko use configured libexecdir when running rpg programs
authored
80 rpg: config.sh munge.rb
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
81
a140d97 Ryan Tomayko make built programs read only
authored
82 build: $(PROGRAMS)
963426b Ryan Tomayko make auto
authored
83
84 auto:
85 while true; do $(MAKE) ; sleep 1; done
b7b3db5 Ryan Tomayko get a Makefile going
authored
86
b5854bd Ryan Tomayko get manpage build stuff going
authored
87 man:
88 $(MAKE) -C doc man
89
3fda91e Ryan Tomayko makefile uses implicit rules for .sh and .html shocco docs
authored
90 doc: $(DOCHTML)
91
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
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)"; \
b7b3db5 Ryan Tomayko get a Makefile going
authored
102 done
103
104 uninstall:
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
105 for f in $(USERPROGRAMS); do \
3ca0906 Ryan Tomayko fix up install and uninstall make targets
authored
106 test -e "$(bindir)/$$f" || continue; \
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
107 echo "rm -f $(bindir)/$$f"; \
108 rm "$(bindir)/$$f"; \
109 done
8dc5de7 Ryan Tomayko uninstall stuff that exist anymore too
authored
110 for f in $(PROGRAMPROGRAMS) rpg-update rpg-status rpg-parse-package-list; do \
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
111 test -e "$(libexecdir)/$$f" || continue; \
112 echo "rm -f $(libexecdir)/$$f"; \
113 rm "$(libexecdir)/$$f"; \
b7b3db5 Ryan Tomayko get a Makefile going
authored
114 done
115
578b0d4 Ryan Tomayko make install-local installs to /usr/local and switches to dev environmen...
authored
116 install-local:
117 ./configure --prefix=/usr/local
118 sleep 1
119 make
120 make install
121 ./configure --development
122
b7b3db5 Ryan Tomayko get a Makefile going
authored
123 clean:
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
124 rm -vf $(PROGRAMS) $(DOCHTML)
b5854bd Ryan Tomayko get manpage build stuff going
authored
125 $(MAKE) -C doc clean
b7b3db5 Ryan Tomayko get a Makefile going
authored
126
2cce0fd Ryan Tomayko use .sh extension and more idiomatic use of make
authored
127 .SILENT:
8e72220 Ryan Tomayko configure and `make install' basically work but need love
authored
128
129 .PHONY: install uninstall clean
Something went wrong with that request. Please try again.