Blame


1 b2cfc4e2 2003-09-30 devnull
2 b2cfc4e2 2003-09-30 devnull # this works in gnu make
3 b2cfc4e2 2003-09-30 devnull SYSNAME:=${shell uname}
4 b2cfc4e2 2003-09-30 devnull OBJTYPE:=${shell uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'}
5 b2cfc4e2 2003-09-30 devnull
6 b2cfc4e2 2003-09-30 devnull # this works in bsd make
7 b2cfc4e2 2003-09-30 devnull SYSNAME!=uname
8 b2cfc4e2 2003-09-30 devnull OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'
9 b2cfc4e2 2003-09-30 devnull
10 b2cfc4e2 2003-09-30 devnull # the gnu rules will mess up bsd but not vice versa,
11 b2cfc4e2 2003-09-30 devnull # hence the gnu rules come first.
12 b2cfc4e2 2003-09-30 devnull
13 b2cfc4e2 2003-09-30 devnull include Make.$(SYSNAME)-$(OBJTYPE)
14 b2cfc4e2 2003-09-30 devnull
15 b2cfc4e2 2003-09-30 devnull PREFIX=/usr/local
16 b2cfc4e2 2003-09-30 devnull
17 b2cfc4e2 2003-09-30 devnull NUKEFILES=
18 b2cfc4e2 2003-09-30 devnull
19 b2cfc4e2 2003-09-30 devnull TGZFILES=
20 b2cfc4e2 2003-09-30 devnull
21 b2cfc4e2 2003-09-30 devnull LIB=libregexp9.a
22 b2cfc4e2 2003-09-30 devnull VERSION=2.0
23 b2cfc4e2 2003-09-30 devnull PORTPLACE=devel/libregexp9
24 b2cfc4e2 2003-09-30 devnull NAME=libregexp9
25 b2cfc4e2 2003-09-30 devnull
26 b2cfc4e2 2003-09-30 devnull OFILES=\
27 b2cfc4e2 2003-09-30 devnull regcomp.$O\
28 b2cfc4e2 2003-09-30 devnull regerror.$O\
29 b2cfc4e2 2003-09-30 devnull regexec.$O\
30 b2cfc4e2 2003-09-30 devnull regsub.$O\
31 b2cfc4e2 2003-09-30 devnull regaux.$O\
32 b2cfc4e2 2003-09-30 devnull rregsub.$O\
33 b2cfc4e2 2003-09-30 devnull rregaux.$O\
34 b2cfc4e2 2003-09-30 devnull rregexec.$O\
35 b2cfc4e2 2003-09-30 devnull
36 b2cfc4e2 2003-09-30 devnull HFILES=\
37 b2cfc4e2 2003-09-30 devnull regexp9.h\
38 b2cfc4e2 2003-09-30 devnull regcomp.h\
39 b2cfc4e2 2003-09-30 devnull
40 b2cfc4e2 2003-09-30 devnull all: $(LIB)
41 b2cfc4e2 2003-09-30 devnull
42 b2cfc4e2 2003-09-30 devnull install: $(LIB)
43 b2cfc4e2 2003-09-30 devnull test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
44 b2cfc4e2 2003-09-30 devnull test -d $(PREFIX)/man/man7 || mkdir $(PREFIX)/man/man7
45 b2cfc4e2 2003-09-30 devnull install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3
46 b2cfc4e2 2003-09-30 devnull install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
47 b2cfc4e2 2003-09-30 devnull install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
48 b2cfc4e2 2003-09-30 devnull install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h
49 b2cfc4e2 2003-09-30 devnull
50 b2cfc4e2 2003-09-30 devnull test: test.$O $(LIB)
51 b2cfc4e2 2003-09-30 devnull $(CC) -o test test.$O $(LIB) -L/usr/local/lib -lfmt -lutf
52 b2cfc4e2 2003-09-30 devnull
53 b2cfc4e2 2003-09-30 devnull test2: test2.$O $(LIB)
54 b2cfc4e2 2003-09-30 devnull $(CC) -o test2 test2.$O $(LIB) -L/usr/local/lib -lfmt -lutf
55 b2cfc4e2 2003-09-30 devnull
56 b2cfc4e2 2003-09-30 devnull $(LIB): $(OFILES)
57 b2cfc4e2 2003-09-30 devnull $(AR) $(ARFLAGS) $(LIB) $(OFILES)
58 b2cfc4e2 2003-09-30 devnull
59 b2cfc4e2 2003-09-30 devnull NUKEFILES+=$(LIB)
60 b2cfc4e2 2003-09-30 devnull .c.$O:
61 b2cfc4e2 2003-09-30 devnull $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c
62 b2cfc4e2 2003-09-30 devnull
63 b2cfc4e2 2003-09-30 devnull %.$O: %.c
64 b2cfc4e2 2003-09-30 devnull $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c
65 b2cfc4e2 2003-09-30 devnull
66 b2cfc4e2 2003-09-30 devnull
67 b2cfc4e2 2003-09-30 devnull $(OFILES): $(HFILES)
68 b2cfc4e2 2003-09-30 devnull
69 b2cfc4e2 2003-09-30 devnull tgz:
70 b2cfc4e2 2003-09-30 devnull rm -rf $(NAME)-$(VERSION)
71 b2cfc4e2 2003-09-30 devnull mkdir $(NAME)-$(VERSION)
72 b2cfc4e2 2003-09-30 devnull cp Makefile Make.* README LICENSE NOTICE *.[ch137] rpm.spec bundle.ports $(TGZFILES) $(NAME)-$(VERSION)
73 b2cfc4e2 2003-09-30 devnull tar cf - $(NAME)-$(VERSION) | gzip >$(NAME)-$(VERSION).tgz
74 b2cfc4e2 2003-09-30 devnull rm -rf $(NAME)-$(VERSION)
75 b2cfc4e2 2003-09-30 devnull
76 b2cfc4e2 2003-09-30 devnull clean:
77 b2cfc4e2 2003-09-30 devnull rm -f $(OFILES) $(LIB)
78 b2cfc4e2 2003-09-30 devnull
79 b2cfc4e2 2003-09-30 devnull nuke:
80 b2cfc4e2 2003-09-30 devnull rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
81 b2cfc4e2 2003-09-30 devnull
82 b2cfc4e2 2003-09-30 devnull rpm:
83 b2cfc4e2 2003-09-30 devnull make tgz
84 b2cfc4e2 2003-09-30 devnull cp $(NAME)-$(VERSION).tgz /usr/src/RPM/SOURCES
85 b2cfc4e2 2003-09-30 devnull rpm -ba rpm.spec
86 b2cfc4e2 2003-09-30 devnull cp /usr/src/RPM/SRPMS/$(NAME)-$(VERSION)-1.src.rpm .
87 b2cfc4e2 2003-09-30 devnull cp /usr/src/RPM/RPMS/i586/$(NAME)-$(VERSION)-1.i586.rpm .
88 b2cfc4e2 2003-09-30 devnull scp *.rpm rsc@amsterdam.lcs.mit.edu:public_html/software
89 b2cfc4e2 2003-09-30 devnull
90 b2cfc4e2 2003-09-30 devnull PORTDIR=/usr/ports/$(PORTPLACE)
91 b2cfc4e2 2003-09-30 devnull
92 b2cfc4e2 2003-09-30 devnull ports:
93 b2cfc4e2 2003-09-30 devnull make tgz
94 b2cfc4e2 2003-09-30 devnull rm -rf $(PORTDIR)
95 b2cfc4e2 2003-09-30 devnull mkdir $(PORTDIR)
96 b2cfc4e2 2003-09-30 devnull cp $(NAME)-$(VERSION).tgz /usr/ports/distfiles
97 b2cfc4e2 2003-09-30 devnull cat bundle.ports | (cd $(PORTDIR) && awk '$$1=="---" && $$3=="---" { ofile=$$2; next} {if(ofile) print >ofile}')
98 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); make makesum)
99 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); make)
100 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); /usr/local/bin/portlint)
101 b2cfc4e2 2003-09-30 devnull rm -rf $(PORTDIR)/work
102 b2cfc4e2 2003-09-30 devnull shar `find $(PORTDIR)` > ports.shar
103 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); tar cf - *) | gzip >$(NAME)-$(VERSION)-ports.tgz
104 b2cfc4e2 2003-09-30 devnull scp *.tgz rsc@amsterdam.lcs.mit.edu:public_html/software
105 b2cfc4e2 2003-09-30 devnull
106 b2cfc4e2 2003-09-30 devnull .phony: all clean nuke install tgz rpm ports