head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	2000.08.21.20.47.38;	author dwitch;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.20.23.23.17;	author dwitch;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.20.13.18.20;	author dwitch;	state Exp;
branches;
next	1.2;

1.2
date	2000.08.19.22.10.18;	author dwitch;	state Exp;
branches;
next	1.1;

1.1
date	2000.08.19.21.54.28;	author dwitch;	state Exp;
branches;
next	;


desc
@@


1.5
log
@- Renamed DebBugs:: perl hierarchy to Debbugs::
@
text
@DESTDIR=
prefix=/usr
perldir=${prefix}/lib/perl5
bindir=${prefix}/bin
mandir=${prefix}/share/man
man1dir=${mandir}/man1
man3dir=${mandir}/man3

LIBS= \
 Debbugs/DMBT.pm \
 Debbugs/DMBT/GUI.pm \
 Debbugs/RemoteBTS.pm \
 Debbugs/RemoteBTS/LDAP.pm \
 Debbugs/BugReport.pm \

PROGS= \
	dmbt

MAN1ROOTS=doc/dmbt
MAN1S=${MAN1ROOTS:=.1}

MANS=${MAN1S}

all: ${MANS}

install: install-progs install-libs install-docs

install-progs: ${PROGS}
	install -m755 -d ${DESTDIR}${bindir}
	install -m755 $^ ${DESTDIR}${bindir}

install-libs: ${LIBS}
	for lib in $^ ; do \
	  install -m755 -d ${DESTDIR}${perldir}/`dirname $$lib` ; \
	  install -m644 $$lib ${DESTDIR}${perldir}/`dirname $$lib` ; \
	done

install-docs: ${MANS}
	install -m755 -d ${DESTDIR}${man1dir}
	install -m644 ${MAN1S} ${DESTDIR}${man1dir}

clean:
	rm -rf ${MANS}

%.1: %.sgml
	docbook-to-man $< > $@@
@


1.4
log
@- Fixed installation of perl modules
@
text
@d10 5
a14 5
 DebBugs/DMBT.pm \
 DebBugs/DMBT/GUI.pm \
 DebBugs/RemoteBTS.pm \
 DebBugs/RemoteBTS/LDAP.pm \
 DebBugs/BugReport.pm \
@


1.3
log
@Build and install manpages
@
text
@d33 4
a36 2
	install -m755 -d ${DESTDIR}${perldir}
	install -m644 $^ ${DESTDIR}${perldir}
@


1.2
log
@- Install dmbt executable
- Dummy clean target
@
text
@d5 3
d19 8
a26 1
install: install-progs install-libs
d36 4
d41 4
@


1.1
log
@Initial revision
@
text
@d20 1
a20 1
	install -m644 $^ ${DESTDIR}${bindir}
d25 2
@
