This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
54 lines (49 loc) · 1.6 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
### Makefile ---
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 3, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; see the file COPYING. If not, write to
## the Free Software Foundation, Inc., 51 Franklin Street, Fifth
## Floor, Boston, MA 02110-1301, USA.
##
######################################################################
##
### Code:
DESTDIR=
prefix=$(DESTDIR)/usr
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
datarootdir=$(prefix)/share
datadir=$(datarootdir)
appname=vimwiki2org
pkgdatadir=$(datadir)/$(appname)
.PHONY : help install uninstall
all : help
help :
@echo "Usage:"
@echo " make [install|uninstall|help] [DESTDIR=\"$(DESTDIR)\"] [prefix=\"$(prefix)\"]"
datafiles=Makefile README.markdown
install :
@echo "==> install..."
mkdir -p $(pkgdatadir)
install -m644 $(datafiles) $(pkgdatadir)/
cp -rf example $(pkgdatadir)/
mkdir -p $(bindir)
install -m755 vimwiki2org.pl $(bindir)/vimwiki2org
@echo "==> done."
uninstall :
@echo "==> uninstall..."
rm -rf $(pkgdatadir)
rm -f $(bindir)/vimwiki2org
@echo "==> done."
######################################################################
### Makefile ends here