Commit Diff


commit - 9277f37fbd9ab2abf0a46c4c294f322c7b2c70be
commit + c06bb7fc808289f88db5e3f06d8b0cc579ce843b
blob - 1fdcb99d4bf543892bcd66104fe535fb027405f3
blob + 9854503d1769fa6c97103e4db5ef6a3c1a0522fb
--- Makefile
+++ Makefile
@@ -56,7 +56,7 @@ clean:
 install:
 	mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${SCRIPTDIR} ${DESTDIR}/etc
 	cp -f bin/* ${DESTDIR}${PREFIX}/bin/
-	cp -rf etc/* ${DESTDIR}/etc/
+	[ "$$(uname)" = "openbsd" ] && cp -rf etc/* ${DESTDIR}/etc/
 	for f in scripts/*; do										\
 		sed 's#@PREFIX@#${PREFIX}#g; s#@SCRIPTS@#${SCRIPTDIR}#; s#@TERM@#${TERM}#' < $$f 	\
 		> ${DESTDIR}${SCRIPTDIR}/$$(basename $$f);						\
@@ -68,7 +68,7 @@ install:
 	chmod u+s ${DESTDIR}${PREFIX}/bin/slock
 
 install-user:
-	cp -rf dotfiles/.* ${HOME}/
+	find dotfiles -mindepth 1 -maxdepth 1 | xargs -I '{}' cp -rf '{}' "$$HOME/"
 
 install-pkgs:
 	pkg_add -l pkgs