You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
981 B

# vala-otp
# Written in 2022 by Lucas
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any
# warranty.
# You should have received a copy of the CC0 Public Domain Dedication
# along with this software. If not, see
# <>.
P = otp
V = 0.0
DIST = COPYING Makefile opt.vala t/rfc.vala
rm -f otp.h otp.vapi ${P}-${V}.tgz
test: t/rfc.t
run-tests: test
dist: clean
pax -w -s ',^,$P-$V/,' ${DIST} | gzip >$P-$V.tgz
install: all
mkdir -p ${PREFIX}/bin
cp -f ${BIN} ${PREFIX}/bin
cd ${PREFIX}/bin && rm -f ${BIN} otp.vala
valac --library=otp -H otp.h -X -fPIC -X -shared -o otp.vala
valac -X -I. -X -o t/rfc.t otp.vapi t/rfc.vala