Add to git.
[cdoc.git] / Makefile+
1 # -*- Makefile -*-
2 #
3 # This is a make+ file. Make+ is a set of scripts which enhance GNU
4 # make and let you build RPMs, and other package types with just one
5 # control file.  To build this package you will need to download make+
6 # from this site: http://www.annexia.org/freeware/makeplus/
7
8 PACKAGE         := cdoc
9 VERSION_MAJOR   := 0
10 VERSION_MINOR   := 9.7
11 VERSION         := $(VERSION_MAJOR).$(VERSION_MINOR)
12
13 SUMMARY         := Simple documentation tool for C programs and libraries.
14 COPYRIGHT       := GNU GPL
15 AUTHOR          := Richard W.M. Jones <rich@annexia.org>
16
17 define DESCRIPTION
18 cdoc is a simple documentation tool for C programs and libraries. It
19 takes inline embedded comments and turns them into manual pages. It
20 needs Perl to run.
21 endef
22
23 RPM_REQUIRES    := perl
24 RPM_GROUP       := Development/Building
25
26 all:    build
27
28 configure:
29         $(MP_CONFIGURE_START)
30         $(MP_CONFIGURE_END)
31
32 build:
33
34 test:
35
36 install:
37         install -d $(DESTDIR)$(bindir)
38         install -m 0755 $(srcdir)/cdoc $(DESTDIR)$(bindir)
39
40 define WEBSITE
41 <% include page_header.msp %>
42
43 <h1>cdoc - $(SUMMARY)</h1>
44
45 <p>
46 $(DESCRIPTION)
47 </p>
48
49 <h1>Download</h1>
50
51 <ul>
52 <li> <a href="$(PACKAGE)-$(VERSION).tar.gz">$(PACKAGE)-$(VERSION).tar.gz</a>
53 <li> <a href="$(PACKAGE)-$(VERSION)-1.i386.rpm">$(PACKAGE)-$(VERSION)-1.i386.rpm</a>
54 <li> <a href="$(PACKAGE)-$(VERSION)-1.src.rpm">$(PACKAGE)-$(VERSION)-1.src.rpm</a>
55 <li> <a href="$(PACKAGE)-$(VERSION).bin.tar.gz">$(PACKAGE)-$(VERSION).bin.tar.gz</a>
56 </ul>
57
58 <% include page_footer.msp %>
59 endef
60
61 upload_website:
62         scp $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)-1.*.rpm \
63         $(PACKAGE)-$(VERSION).bin.tar.gz \
64         10.0.0.248:annexia.org/freeware/$(PACKAGE)/
65         scp index.html \
66         10.0.0.248:annexia.org/freeware/$(PACKAGE)/index.msp
67
68 .PHONY: build configure test upload_website