-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
30 lines (23 loc) · 1.01 KB
/
Makefile.in
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
DESTDIR=
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datadir=@datarootdir@/vimduino
all: infiniteread
clean:
rm -f infiniteread config.status config.log
distclean: clean
rm -f Makefile vimduino
infiniteread: infiniteread.c
$(CC) -W -Wall -o $@ $<
install:
install -D -m 755 vimduino $(DESTDIR)$(bindir)/vimduino
install -D -m 755 vimduinomake $(DESTDIR)$(datadir)/vimduinomake
install -D -m 755 infiniteread $(DESTDIR)$(bindir)/infiniteread
install -D -m 644 vimrc $(DESTDIR)$(datadir)/vimrc
install -D -m 644 template.cpp $(DESTDIR)$(datadir)/template.cpp
install -D -m 644 bash_completion $(DESTDIR)/etc/bash_completion.d/vimduino
uninstall:
rm -f $(DESTDIR)$(bindir)/vimduino $(DESTDIR)$(datadir)/vimduinomake $(DESTDIR)$(bindir)/infiniteread $(DESTDIR)$(datadir)/vimrc $(DESTDIR)$(datadir)/template.cpp $(DESTDIR)/etc/bash_completion.d/vimduino
rmdir --ignore-fail-on-non-empty -p $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) $(DESTDIR)/etc/bash_completion.d/
.PHONY: all clean distclean install uninstall