-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (24 loc) · 821 Bytes
/
makefile
File metadata and controls
31 lines (24 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
objects := main.o
PREFIX := /usr/local/bin
autogen := post_commit_hook.h
default: tigger
install: tigger rubydeps
@echo "Copying Tigger into /usr/local/bin"
@echo "Please ensure the /usr/local/bin is in your path!"
cp tigger $(PREFIX)
@echo "Finished. Tigger is installed. Type 'tigger' for usage."
rubydeps:
@echo "Installing Ruby dependency Grit"
@echo "Note that Ruby must be installed for this to work"
gem install grit
tigger : $(autogen) $(objects)
@echo "Linking source files..."
cc -o $@ $(objects)
post_commit_hook.h : post_commit_hook.rb
@echo "Generating commit_hook header"
./rb2h.rb POST_COMMIT_HOOK
main.o : tigger_util.h main.c
@echo "Installing Tigger....."
cc -Wall -c main.c
clean :
rm edit $(objects) $(generated_dependencies)