ifdef packages PACKAGES := ${PACKAGES} $(subst ${comma_},${space},${packages}) endif ifdef rootpass export rootpass .PHONY: _rootpass _config: _rootpass _rootpass: ${CFGROOT} chroot "$${CFGROOT}" usermod -p "$$(openssl passwd -salt "x$${RANDOM}" "$${rootpass}")" root endif ifdef wifi export wifi _config: ${CFGROOT}/etc/network/interfaces.d/wifi ifdef wifipass export wifipass ${CFGROOT}/etc/network/interfaces.d/wifi: ${CFGROOT} printf 'auto wlan0\nallow-hotplug wlan0\n\niface wlan0 inet dhcp\n' >$@ printf ' wpa-ssid "%s"\n wpa-psk "%s"\n' "$$wifi" "$$wifipass" >>$@ else ${CFGROOT}/etc/network/interfaces.d/wifi: ${CFGROOT} printf 'auto wlan0\nallow-hotplug wlan0\n\niface wlan0 inet dhcp\n' >$@ printf ' wireless-ssid "%s"\n' "$$wifi" >>$@ endif endif