-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (25 loc) · 739 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (25 loc) · 739 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
# .PHONY all
# all : build/ build/config/ build/edit
# ./build/
# ./build/config/
# ./build/edit
.PHONY all: build/goedit build/config/
.PHONY install: all copy
.PHONY remove: remove_configuration remove_binary
clean:
rm build/ -r
./build/config/: ./src/config/
cp ./src/config ./build/config -r
./build/goedit: ./src/goedit.go
go build -o ./build/goedit ./src/goedit.go
copy: ./build/config ./build/goedit
@echo "installing"
cp ./build/goedit /usr/local/bin/goedit
mkdir /usr/local/bin/config
cp ./build/config/ /usr/local/bin/config -r
remove_configuration:
@echo "removing configuration files"
rm /usr/local/bin/config -r
remove_binary:
@echo "removing binary files"
rm /usr/local/bin/goedit