yunohost-admin/debian/rules
2022-01-10 21:13:31 +01:00

26 lines
713 B
Makefile
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Get package version
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
# Define temporary debian directory
TMPDIR = $$(pwd)/debian/yunohost-admin
%:
dh $@
override_dh_auto_build:
/usr/bin/npm install -g npm@6
cd app ; PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/local/bin/npm --progress false ci
cd app ; PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/local/bin/npm run build
override_dh_clean:
dh_clean
rm -rf app/node_modules
rm -rf app/dist