Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 143 lines (112 sloc) 3.266 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 \
041fb86b »
2010-03-21 remove defunct rpg-version-test
21 rpg-uninstall.sh rpg-build.sh rpg-env.sh rpg-sync.sh \
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
22 rpg-resolve.sh rpg-upgrade.sh rpg-steal.sh rpg-fsck.sh rpg-outdated.sh \
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
23 rpg-package-register.sh rpg-package-install.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 \
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
26 rpg-leaves.sh rpg-solve.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 = \
041fb86b »
2010-03-21 remove defunct rpg-version-test
29 rpg-sh-setup.html rpg.html rpg-fetch.html \
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
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 = \
041fb86b »
2010-03-21 remove defunct rpg-version-test
35 rpg-config rpg-fetch rpg-install 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 \
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
38 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 \
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
40 rpg-leaves rpg-solve
4b1ed8b9 »
2010-03-13 s/pgem/rpg/g on entire project
41
041fb86b »
2010-03-21 remove defunct rpg-version-test
42 DEADPROGRAMS = \
43 rpg-update rpg-status rpg-parse-package-list rpg-version-test
44
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
45 OBJECTS = \
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
46 strnatcmp.o rpg-solve.o
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
47
b94a9ef2 »
2010-03-17 rpg-status is now known as rpg-list
48 USERPROGRAMS = rpg rpg-sh-setup
b5854bde »
2010-03-17 get manpage build stuff going
49 PROGRAMS = $(USERPROGRAMS) $(PROGRAMPROGRAMS)
b7b3db56 »
2010-03-11 get a Makefile going
50
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
51 .SUFFIXES: .sh .rb .html .c .o
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
52
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
53 .sh:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
54 printf "%13s %-30s" "[SH]" "$@"
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
55 $(SHELL) -n $<
a140d97c »
2010-03-12 make built programs read only
56 rm -f $@
8e722205 »
2010-03-15 configure and `make install' basically work but need love
57 $(RUBY) ./munge.rb __RPGCONFIG__ config.sh <$< >$@+
58 chmod a-w+x $@+
59 mv $@+ $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
60 printf " OK\n"
b7b3db56 »
2010-03-11 get a Makefile going
61
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
62 .sh.html:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
63 printf "%13s %-30s" "[SHOCCO]" "$@"
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
64 shocco $< > $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
65 printf " OK\n"
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
66
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
67 .rb:
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
68 printf "%13s %-30s" "[RUBY]" "$@"
69 ruby -c $< >/dev/null
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
70 rm -f $@
71 cp $< $@
72 chmod a-w+x $@
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
73 printf " OK\n"
74
75 .rb.html:
76 printf "%13s %-30s" "[ROCCO]" "$@"
0e5e9357 »
2010-03-17 docco cleanup, remove undocumented stuff from doc target
77 rocco $< >/dev/null
78b39831 »
2010-03-15 rpg-parse-index converts modern gemspec index to parseable format
78 printf " OK\n"
eb3ac032 »
2010-03-14 rpg-package-spec does everything gemspec related
79
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
80 .c.o:
472b1e51 »
2010-03-21 first crack at fast version solver in C
81 printf "%13s %-30s" "[CC]" "$@"
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
82 $(CC) -c $(CFLAGS) $<
472b1e51 »
2010-03-21 first crack at fast version solver in C
83 printf " OK\n"
84
8e722205 »
2010-03-15 configure and `make install' basically work but need love
85 rpg-sh-setup: config.sh munge.rb
75fe7cac »
2010-03-15 use configured libexecdir when running rpg programs
86 rpg: config.sh munge.rb
8e722205 »
2010-03-15 configure and `make install' basically work but need love
87
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
88 rpg-solve: rpg-solve.o strnatcmp.o
3a5b791c »
2010-03-21 write unsolved packages as: <package> -
89 printf "%13s %-30s" "[LINK]" "$@"
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
90 $(CC) $(CFLAGS) $(LDFLAGS) rpg-solve.o strnatcmp.o -o $@
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
91 printf " OK\n"
92
5e038e5d »
2010-03-21 rpg-solve-fast is now rpg-solve; rpg-solve.sh goes away
93 rpg-solve-fast.o: rpg-solve.c strnatcmp.h
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
94 strnatcmp.o: strnatcmp.c strnatcmp.h
95
a140d97c »
2010-03-12 make built programs read only
96 build: $(PROGRAMS)
963426b1 »
2010-03-12 make auto
97
98 auto:
99 while true; do $(MAKE) ; sleep 1; done
b7b3db56 »
2010-03-11 get a Makefile going
100
b5854bde »
2010-03-17 get manpage build stuff going
101 man:
102 $(MAKE) -C doc man
103
3fda91e9 »
2010-03-12 makefile uses implicit rules for .sh and .html shocco docs
104 doc: $(DOCHTML)
105
8e722205 »
2010-03-15 configure and `make install' basically work but need love
106 install:
107 mkdir -p "$(bindir)" || true
108 for f in $(USERPROGRAMS); do \
109 echo "$(INSTALL_PROGRAM) $$f $(bindir)"; \
110 $(INSTALL_PROGRAM) $$f "$(bindir)"; \
111 done
112 mkdir -p "$(libexecdir)" || true
113 for f in $(PROGRAMPROGRAMS); do \
114 echo "$(INSTALL_PROGRAM) $$f $(libexecdir)"; \
115 $(INSTALL_PROGRAM) $$f "$(libexecdir)"; \
b7b3db56 »
2010-03-11 get a Makefile going
116 done
117
118 uninstall:
8e722205 »
2010-03-15 configure and `make install' basically work but need love
119 for f in $(USERPROGRAMS); do \
3ca09064 »
2010-03-12 fix up install and uninstall make targets
120 test -e "$(bindir)/$$f" || continue; \
8e722205 »
2010-03-15 configure and `make install' basically work but need love
121 echo "rm -f $(bindir)/$$f"; \
122 rm "$(bindir)/$$f"; \
123 done
041fb86b »
2010-03-21 remove defunct rpg-version-test
124 for f in $(PROGRAMPROGRAMS) $(DEADPROGRAMS); do \
8e722205 »
2010-03-15 configure and `make install' basically work but need love
125 test -e "$(libexecdir)/$$f" || continue; \
126 echo "rm -f $(libexecdir)/$$f"; \
127 rm "$(libexecdir)/$$f"; \
b7b3db56 »
2010-03-11 get a Makefile going
128 done
129
578b0d44 »
2010-03-16 make install-local installs to /usr/local and switches to dev environ…
130 install-local:
131 ./configure --prefix=/usr/local
132 sleep 1
133 make
134 make install
135 ./configure --development
136
b7b3db56 »
2010-03-11 get a Makefile going
137 clean:
1a0d57df »
2010-03-21 bring in strnatcmp lib for comparing versions
138 rm -vf $(PROGRAMS) $(DOCHTML) $(OBJECTS)
b5854bde »
2010-03-17 get manpage build stuff going
139 $(MAKE) -C doc clean
b7b3db56 »
2010-03-11 get a Makefile going
140
2cce0fd0 »
2010-03-12 use .sh extension and more idiomatic use of make
141 .SILENT:
8e722205 »
2010-03-15 configure and `make install' basically work but need love
142
143 .PHONY: install uninstall clean
Something went wrong with that request. Please try again.