-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 814 Bytes
/
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
.POSIX:
.PHONY: all clean install uninstall dist
include config.mk
OBJ=\
src/zinc.o \
src/pizarra.o \
src/picker.o \
src/utils.o \
src/history.o
all: zinc
zinc: $(OBJ)
$(CC) $(LDFLAGS) -o zinc $(OBJ)
clean:
rm -f zinc $(OBJ) zinc-$(VERSION).tar.gz
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f zinc $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/zinc
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f zinc.1 $(DESTDIR)$(MANPREFIX)/man1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/zinc.1
dist: clean
mkdir -p zinc-$(VERSION)
cp -R COPYING config.mk Makefile README zinc.1 src include \
zinc-$(VERSION)
tar -cf zinc-$(VERSION).tar zinc-$(VERSION)
gzip zinc-$(VERSION).tar
rm -rf zinc-$(VERSION)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/zinc
rm -f $(DESTDIR)$(MANPREFIX)/man1/zinc.1