Commit abb71961 authored by Philipp Huebner's avatar Philipp Huebner

Install header file

parent d54b1cc6
......@@ -9,3 +9,15 @@ DESTDIR=$(CURDIR)/debian/erlang-p1-utils
%:
dh $@ --buildsystem=rebar --with rebar
override_dh_auto_install:
dh_auto_install
for file in include/*.hrl; do \
fname=$$(basename $${file}) ; \
subdir=$$(dirname $${file}) ; \
if [ ! -f $(DESTDIR)/usr/lib/erlang/lib/p1_utils-$(DEB_VERSION_UPSTREAM)/$${subdir}/$${fname} ] ; then \
install -m 755 -d $(DESTDIR)/usr/lib/erlang/lib/p1_utils-$(DEB_VERSION_UPSTREAM)/$${subdir} ; \
install -m 644 $${file} $(DESTDIR)/usr/lib/erlang/lib/p1_utils-$(DEB_VERSION_UPSTREAM)/$${subdir} ; \
fi ; \
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment