tMakefile.BOT - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tMakefile.BOT (1403B)
---
1 .c.$O:
2 $(CC) $(CFLAGS) -I../libutf -I../libfmt -I../libbio -I../libregexp -I$(PREFIX)/include $*.c
3
4 %.$O: %.c
5 $(CC) $(CFLAGS) -I../libutf -I../libfmt -I../libbio -I../libregexp -I$(PREFIX)/include $*.c
6
7
8 $(OFILES): $(HFILES)
9
10 tgz:
11 rm -rf $(NAME)-$(VERSION)
12 mkdir $(NAME)-$(VERSION)
13 cp Makefile Make.* README LICENSE NOTICE *.[ch137] rpm.spec bundle.ports $(TGZFILES) $(NAME)-$(VERSION)
14 tar cf - $(NAME)-$(VERSION) | gzip >$(NAME)-$(VERSION).tgz
15 rm -rf $(NAME)-$(VERSION)
16
17 clean:
18 rm -f $(OFILES) $(LIB) $(CLEANFILES)
19
20 nuke:
21 rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
22
23 rpm:
24 make tgz
25 cp $(NAME)-$(VERSION).tgz /usr/src/RPM/SOURCES
26 rpm -ba rpm.spec
27 cp /usr/src/RPM/SRPMS/$(NAME)-$(VERSION)-1.src.rpm .
28 cp /usr/src/RPM/RPMS/i586/$(NAME)-$(VERSION)-1.i586.rpm .
29 scp *.rpm rsc@amsterdam.lcs.mit.edu:public_html/software
30
31 PORTDIR=/usr/ports/$(PORTPLACE)
32
33 ports:
34 make tgz
35 rm -rf $(PORTDIR)
36 mkdir $(PORTDIR)
37 cp $(NAME)-$(VERSION).tgz /usr/ports/distfiles
38 cat bundle.ports | (cd $(PORTDIR) && awk '$$1=="---" && $$3=="---" { ofile=$$2; next} {if(ofile) print >ofile}')
39 (cd $(PORTDIR); make makesum)
40 (cd $(PORTDIR); make)
41 (cd $(PORTDIR); /usr/local/bin/portlint)
42 rm -rf $(PORTDIR)/work
43 shar `find $(PORTDIR)` > ports.shar
44 (cd $(PORTDIR); tar cf - *) | gzip >$(NAME)-$(VERSION)-ports.tgz
45 scp *.tgz rsc@amsterdam.lcs.mit.edu:public_html/software
46
47 .phony: all clean nuke install tgz rpm ports