| 1 |
prefix=/usr |
| 2 |
PACKAGE=xmltoman |
| 3 |
VERSION=0.6 |
| 4 |
DISTNAME=$(PACKAGE)-$(VERSION) |
| 5 |
DISTFILES= COPYING Makefile README xml/ xmlmantohtml xmltoman xmltoman.css xmltoman.dtd xmltoman.xsl xmltoman.1 xmlmantohtml.1 |
| 6 |
|
| 7 |
all: xmltoman.1 xmlmantohtml.1 |
| 8 |
|
| 9 |
xmltoman.1: xml/xmltoman.1.xml |
| 10 |
chmod 0755 xmltoman |
| 11 |
./xmltoman $< > $@ |
| 12 |
|
| 13 |
xmlmantohtml.1: xml/xmlmantohtml.1.xml |
| •14 |
chmod 0755 xmltoman |
| 15 |
./xmltoman $< > $@ |
| 16 |
|
| 17 |
#permissions still used during install to verify they are not changed. |
| 18 |
install: |
| 19 |
install -D -m 0755 xmltoman $(DESTDIR)$(prefix)/bin/xmltoman |
| 20 |
install -D -m 0755 xmlmantohtml $(DESTDIR)$(prefix)/bin/xmlmantohtml |
| 21 |
install -D -m 0644 xmltoman.dtd $(DESTDIR)$(prefix)/share/xmltoman/xmltoman.dtd |
| 22 |
install -D -m 0644 xmltoman.css $(DESTDIR)$(prefix)/share/xmltoman/xmltoman.css |
| 23 |
install -D -m 0644 xmltoman.xsl $(DESTDIR)$(prefix)/share/xmltoman/xmltoman.xsl |
| 24 |
install -D -m 0644 xmltoman.1 $(DESTDIR)$(prefix)/share/man/man1/xmltoman.1 |
| 25 |
install -D -m 0644 xmlmantohtml.1 $(DESTDIR)$(prefix)/share/man/man1/xmlmantohtml.1 |
| 26 |
|
| 27 |
dist: |
| 28 |
[ -d $(DISTNAME) ] && rm -rf $(DISTNAME) || true |
| 29 |
mkdir $(DISTNAME) |
| 30 |
cp -aR $(DISTFILES) $(DISTNAME) |
| 31 |
tar zcvf $(DISTNAME).tar.gz $(DISTNAME) |
| 32 |
rm -rf $(DISTNAME) |
| 33 |
|
| 34 |
clean: |
| 35 |
rm -f *~ *.1 xml/*~ |