src/world/usr.bin/42/Makefile

16 lines
361 B
Makefile

# Makefile - hhl - /usr/src/world/usr.bin/42
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
progname = 42
bins += 42
VPATH += src
include hhl.cargo.mk
42datadir = ${DESTDIR}/usr/share/42
define post_build
install -d ${42datadir}
install -m644 data/* ${42datadir}
endef
target/$(rust_tgt)/release/42: src/main.rs Cargo.toml Cargo.lock