aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--sw/Makefile7
2 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 79a85da..863766a 100644
--- a/Makefile
+++ b/Makefile
@@ -97,4 +97,8 @@ reprepro: ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options
${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options:
install -D reprepro-conf/$(notdir $@) ${REPOSITORY}/conf/$(notdir $@)
-.PHONY: all init sw rtl reprepro
+clean:
+ git clean -dfx
+ git submodule foreach 'git clean -dfx'
+
+.PHONY: all init sw rtl reprepro clean
diff --git a/sw/Makefile b/sw/Makefile
index 090855d..da59b70 100644
--- a/sw/Makefile
+++ b/sw/Makefile
@@ -45,6 +45,7 @@ clean distclean:
for d in libtfm libhal sqlite3 pkcs11; do (cd $$d && ${MAKE} $@); done
install: all
- install -D pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
- install -D pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
- install -D libhal/utils/eim_peek_poke ${DESTDIR}/usr/sbin/eim_peek_poke
+ install -m 644 -D pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
+ install -D pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
+ install -D libhal/utils/eim_peek_poke ${DESTDIR}/usr/sbin/eim_peek_poke
+ install -D libhal/utils/load_novena_fpga ${DESTDIR}/usr/sbin/load_novena_fpga