Commit Diff


commit - 0265b2d41a551088e494c0e1c6547c83dcf4f8f0
commit + 837061c8de7d083cb6d216374a95dbfec26a53a4
blob - db1f43f026570211ad65d4411cda5492f3c418da
blob + 5a6cb6922746576df1fae0b76d4538d6e7d615e2
--- Makefile
+++ Makefile
@@ -54,9 +54,8 @@ clean:
 	rm -rf bin
 
 install:
-	mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${SCRIPTDIR} ${DESTDIR}/etc
+	mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${SCRIPTDIR}
 	cp -f bin/* ${DESTDIR}${PREFIX}/bin/
-	[ "$$(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);						\
@@ -67,6 +66,10 @@ install:
 	done
 	chmod u+s ${DESTDIR}${PREFIX}/bin/slock
 
+install-etc:
+	mkdir -p ${DESTDIR}/etc
+	cp -rf etc/* ${DESTDIR}/etc/
+
 install-user:
 	find dotfiles -mindepth 1 -maxdepth 1 | xargs -I '{}' cp -rf '{}' "$$HOME/"