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=libutf.a
22 b2cfc4e2 2003-09-30 devnull VERSION=2.0
23 b2cfc4e2 2003-09-30 devnull PORTPLACE=devel/libutf
24 b2cfc4e2 2003-09-30 devnull NAME=libutf
25 b2cfc4e2 2003-09-30 devnull
26 b2cfc4e2 2003-09-30 devnull OFILES=\
27 b2cfc4e2 2003-09-30 devnull rune.$O\
28 b2cfc4e2 2003-09-30 devnull runestrcat.$O\
29 b2cfc4e2 2003-09-30 devnull runestrchr.$O\
30 b2cfc4e2 2003-09-30 devnull runestrcmp.$O\
31 b2cfc4e2 2003-09-30 devnull runestrcpy.$O\
32 b2cfc4e2 2003-09-30 devnull runestrdup.$O\
33 b2cfc4e2 2003-09-30 devnull runestrlen.$O\
34 b2cfc4e2 2003-09-30 devnull runestrecpy.$O\
35 b2cfc4e2 2003-09-30 devnull runestrncat.$O\
36 b2cfc4e2 2003-09-30 devnull runestrncmp.$O\
37 b2cfc4e2 2003-09-30 devnull runestrncpy.$O\
38 b2cfc4e2 2003-09-30 devnull runestrrchr.$O\
39 b2cfc4e2 2003-09-30 devnull runestrstr.$O\
40 b2cfc4e2 2003-09-30 devnull runetype.$O\
41 b2cfc4e2 2003-09-30 devnull utfecpy.$O\
42 b2cfc4e2 2003-09-30 devnull utflen.$O\
43 b2cfc4e2 2003-09-30 devnull utfnlen.$O\
44 b2cfc4e2 2003-09-30 devnull utfrrune.$O\
45 b2cfc4e2 2003-09-30 devnull utfrune.$O\
46 b2cfc4e2 2003-09-30 devnull utfutf.$O\
47 b2cfc4e2 2003-09-30 devnull
48 b2cfc4e2 2003-09-30 devnull HFILES=\
49 b2cfc4e2 2003-09-30 devnull utf.h\
50 b2cfc4e2 2003-09-30 devnull
51 b2cfc4e2 2003-09-30 devnull all: $(LIB)
52 b2cfc4e2 2003-09-30 devnull
53 b2cfc4e2 2003-09-30 devnull install: $(LIB)
54 b2cfc4e2 2003-09-30 devnull test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
55 b2cfc4e2 2003-09-30 devnull install -c -m 0644 isalpharune.3 $(PREFIX)/man/man3/isalpharune.3
56 b2cfc4e2 2003-09-30 devnull install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
57 b2cfc4e2 2003-09-30 devnull install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
58 b2cfc4e2 2003-09-30 devnull install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
59 b2cfc4e2 2003-09-30 devnull install -c -m 0644 utf.h $(PREFIX)/include/utf.h
60 b2cfc4e2 2003-09-30 devnull install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
61 b2cfc4e2 2003-09-30 devnull
62 b2cfc4e2 2003-09-30 devnull $(LIB): $(OFILES)
63 b2cfc4e2 2003-09-30 devnull $(AR) $(ARFLAGS) $(LIB) $(OFILES)
64 b2cfc4e2 2003-09-30 devnull
65 b2cfc4e2 2003-09-30 devnull NUKEFILES+=$(LIB)
66 b2cfc4e2 2003-09-30 devnull .c.$O:
67 b2cfc4e2 2003-09-30 devnull $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c
68 b2cfc4e2 2003-09-30 devnull
69 b2cfc4e2 2003-09-30 devnull %.$O: %.c
70 b2cfc4e2 2003-09-30 devnull $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c
71 b2cfc4e2 2003-09-30 devnull
72 b2cfc4e2 2003-09-30 devnull
73 b2cfc4e2 2003-09-30 devnull $(OFILES): $(HFILES)
74 b2cfc4e2 2003-09-30 devnull
75 b2cfc4e2 2003-09-30 devnull tgz:
76 b2cfc4e2 2003-09-30 devnull rm -rf $(NAME)-$(VERSION)
77 b2cfc4e2 2003-09-30 devnull mkdir $(NAME)-$(VERSION)
78 b2cfc4e2 2003-09-30 devnull cp Makefile Make.* README LICENSE NOTICE *.[ch137] rpm.spec bundle.ports $(TGZFILES) $(NAME)-$(VERSION)
79 b2cfc4e2 2003-09-30 devnull tar cf - $(NAME)-$(VERSION) | gzip >$(NAME)-$(VERSION).tgz
80 b2cfc4e2 2003-09-30 devnull rm -rf $(NAME)-$(VERSION)
81 b2cfc4e2 2003-09-30 devnull
82 b2cfc4e2 2003-09-30 devnull clean:
83 b2cfc4e2 2003-09-30 devnull rm -f $(OFILES) $(LIB)
84 b2cfc4e2 2003-09-30 devnull
85 b2cfc4e2 2003-09-30 devnull nuke:
86 b2cfc4e2 2003-09-30 devnull rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
87 b2cfc4e2 2003-09-30 devnull
88 b2cfc4e2 2003-09-30 devnull rpm:
89 b2cfc4e2 2003-09-30 devnull make tgz
90 b2cfc4e2 2003-09-30 devnull cp $(NAME)-$(VERSION).tgz /usr/src/RPM/SOURCES
91 b2cfc4e2 2003-09-30 devnull rpm -ba rpm.spec
92 b2cfc4e2 2003-09-30 devnull cp /usr/src/RPM/SRPMS/$(NAME)-$(VERSION)-1.src.rpm .
93 b2cfc4e2 2003-09-30 devnull cp /usr/src/RPM/RPMS/i586/$(NAME)-$(VERSION)-1.i586.rpm .
94 b2cfc4e2 2003-09-30 devnull scp *.rpm rsc@amsterdam.lcs.mit.edu:public_html/software
95 b2cfc4e2 2003-09-30 devnull
96 b2cfc4e2 2003-09-30 devnull PORTDIR=/usr/ports/$(PORTPLACE)
97 b2cfc4e2 2003-09-30 devnull
98 b2cfc4e2 2003-09-30 devnull ports:
99 b2cfc4e2 2003-09-30 devnull make tgz
100 b2cfc4e2 2003-09-30 devnull rm -rf $(PORTDIR)
101 b2cfc4e2 2003-09-30 devnull mkdir $(PORTDIR)
102 b2cfc4e2 2003-09-30 devnull cp $(NAME)-$(VERSION).tgz /usr/ports/distfiles
103 b2cfc4e2 2003-09-30 devnull cat bundle.ports | (cd $(PORTDIR) && awk '$$1=="---" && $$3=="---" { ofile=$$2; next} {if(ofile) print >ofile}')
104 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); make makesum)
105 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); make)
106 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); /usr/local/bin/portlint)
107 b2cfc4e2 2003-09-30 devnull rm -rf $(PORTDIR)/work
108 b2cfc4e2 2003-09-30 devnull shar `find $(PORTDIR)` > ports.shar
109 b2cfc4e2 2003-09-30 devnull (cd $(PORTDIR); tar cf - *) | gzip >$(NAME)-$(VERSION)-ports.tgz
110 b2cfc4e2 2003-09-30 devnull scp *.tgz rsc@amsterdam.lcs.mit.edu:public_html/software
111 b2cfc4e2 2003-09-30 devnull
112 b2cfc4e2 2003-09-30 devnull .phony: all clean nuke install tgz rpm ports