36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
|
# Makefile - hhl - /usr/src/world/wpa_supplicant
|
||
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
||
|
#
|
||
|
distname = wpa_supplicant
|
||
|
distext = gz
|
||
|
no_objdir = 1
|
||
|
use_configure = 0
|
||
|
export tgt
|
||
|
|
||
|
include world.mk
|
||
|
|
||
|
binprogs = /sbin/wpa_cli /sbin/wpa_passphrase /sbin/wpa_supplicant
|
||
|
man5dir = $(mandir)/man5
|
||
|
man8dir = $(mandir)/man8
|
||
|
|
||
|
pre_build = install -m644 config $(srcdir)/wpa_supplicant/.config
|
||
|
build_cmd = $(MAKE) -C $(srcdir)/wpa_supplicant BINDIR=/sbin LIBDIR=/lib DESTDIR=$(DESTDIR)
|
||
|
|
||
|
define install_cmd
|
||
|
for prog in wpa_cli wpa_passphrase wpa_supplicant ; \
|
||
|
do install -m755 $(srcdir)/wpa_supplicant/$${prog} $(DESTDIR)/sbin ; done
|
||
|
install -m644 ${srcdir}/wpa_supplicant/doc/docbook/wpa_supplicant.conf.5 $(man5dir)
|
||
|
install -m644 ${srcdir}/wpa_supplicant/doc/docbook/wpa_cli.8 ${man8dir}
|
||
|
install -m644 ${srcdir}/wpa_supplicant/doc/docbook/wpa_passphrase.8 ${man8dir}
|
||
|
install -m644 ${srcdir}/wpa_supplicant/doc/docbook/wpa_supplicant.8 ${man8dir}
|
||
|
endef
|
||
|
|
||
|
define clean_cmd
|
||
|
rm -rf $$(find $(srcdir) -name '*o')
|
||
|
rm -rf $(srcdir)/wpa_supplicant/wpa_cli
|
||
|
rm -rf $(srcdir)/wpa_supplicant/wpa_passphrase
|
||
|
rm -rf $(srcdir)/wpa_supplicant/wpa_supplicant
|
||
|
endef
|
||
|
|
||
|
include targets.mk
|