Skip to content

Commit

Permalink
Makefile: add
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Klimuk <[email protected]>
  • Loading branch information
DaniilKl committed Apr 9, 2024
1 parent 2bc3585 commit 58ba89d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Makefile for installing/uninstalling scripts.

DTS_PROFILE = dts-profile.sh
DTS_INCLUDE = dts-environment.sh dts-functions.sh
DTS_SCRIPTS = cloud_list dasharo-deploy dts dts-boot ec_transition

DTS_PROFILE_DEST = $(DTS_PROFILE:%=$(DESTDIR)/$(SYSCONFDIR)/%)
DTS_INCLUDE_DEST = $(DTS_INCLUDE:%=$(DESTDIR)/%)
DTS_SCRIPTS_DEST = $(DTS_SCRIPTS:%=$(DESTDIR)/%)

install: $(DTS_PROFILE_DEST) $(DTS_INCLUDE_DEST) $(DTS_SCRIPTS_DEST)

$(DTS_PROFILE_DEST):
install -D -m 0755 $$(find ./ -type f -name $(notdir $@)) $@

$(DTS_INCLUDE_DEST):
install -D -m 0655 $$(find ./ -type f -name $(notdir $@)) $@

$(DTS_SCRIPTS_DEST):
install -D -m 0755 $$(find ./ -type f -name $(notdir $@)) $@

0 comments on commit 58ba89d

Please sign in to comment.