-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 857 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
.POSIX:
.PHONY: all clean install uninstall dist
include config.mk
all: xorblednam
xorblednam: xorblednam.o
$(CC) $(LDFLAGS) -o xorblednam xorblednam.o
clean:
rm -f xorblednam xorblednam.o xorblednam-$(VERSION).tar.gz
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f xorblednam $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/xorblednam
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f xorblednam.1 $(DESTDIR)$(MANPREFIX)/man1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/xorblednam.1
dist: clean
mkdir -p xorblednam-$(VERSION)
cp -R COPYING config.mk Makefile README xorblednam.1 \
xorblednam.c xorblednam-$(VERSION)
tar -cf xorblednam-$(VERSION).tar xorblednam-$(VERSION)
gzip xorblednam-$(VERSION).tar
rm -rf xorblednam-$(VERSION)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/xorblednam
rm -f $(DESTDIR)$(MANPREFIX)/man1/xorblednam.1