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