summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a1b41fa..4b8eb5a 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,18 @@ SUBMODULES = fsmgr kiki openssh
12 12
13all: samizdat-paths.sh ${compiled_programs} ${SUBMODULES} 13all: samizdat-paths.sh ${compiled_programs} ${SUBMODULES}
14 14
15dynmenu: src/dynmenu.cpp 15.PHONY: stack
16stack:
17 which stack >/dev/null || curl -sSL https://get.haskellstack.org/ | sh
18
19build-deps: build-dep-stamp
20build-dep-stamp: build-deps.txt
21 sudo apt-get install --no-upgrade $$(cat build-deps.txt)
22 touch $@
23
24dynmenu: src/dynmenu.cpp build-deps
16 $(CXX) $(CFLAGS) $< -o $@ -lcurses 25 $(CXX) $(CFLAGS) $< -o $@ -lcurses
17samizdat-pinentry: src/samizdat-pinentry.c 26samizdat-pinentry: src/samizdat-pinentry.c build-deps
18 $(CC) $(CFLAGS) $< -o $@ -lcurses 27 $(CC) $(CFLAGS) $< -o $@ -lcurses
19wait_for_files: src/wait_for_files.c 28wait_for_files: src/wait_for_files.c
20 $(CC) $(CFLAGS) $< -o $@ 29 $(CC) $(CFLAGS) $< -o $@
@@ -98,7 +107,7 @@ endif
98include user.mk 107include user.mk
99 108
100.PHONY: submodule $(SUBMODULES) 109.PHONY: submodule $(SUBMODULES)
101$(SUBMODULES): 110$(SUBMODULES): stack
102 [ -e $@/Makefile ] || git submodule update --init 111 [ -e $@/Makefile ] || git submodule update --init
103 $(MAKE) -C $@ $(cmd) 112 $(MAKE) -C $@ $(cmd)
104 113