#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

package=plantuml
# Top directory of the source code (thanks Manoj)
export SRCTOP    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
# Destination directory where files will be installed
export DESTDIR    = $(SRCTOP)/debian/$(package)

%:
	dh $@

override_dh_install:
	install -d $(DESTDIR)/usr/bin
	install -d $(DESTDIR)/usr/share/plantuml
	install -m 755 $(SRCTOP)/plantuml.jar $(DESTDIR)/usr/share/plantuml/plantuml.jar
	install -m 755 $(SRCTOP)/plantuml $(DESTDIR)/usr/bin/plantuml

