19 lines
421 B
Makefile
19 lines
421 B
Makefile
# Makefile - hhl - /usr/src/world/usr.bin/units
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
progname = units
|
|
include hhl.cprog.openbsd.mk
|
|
sharedir = $(DESTDIR)/usr/share
|
|
libdir = $(sharedir)/misc
|
|
libfile = $(libdir)/units.lib
|
|
cppflags += -D'UNITSFILE="/usr/share/misc/units.lib"'
|
|
|
|
install: $(libfile)
|
|
|
|
$(libfile): data/units.lib | $(libdir)
|
|
install -m644 $< $@
|
|
|
|
$(libdir):
|
|
install -d $@
|
|
|