mirror of https://github.com/brandt/symlinks.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
406 B
18 lines
406 B
# Makefile for symlinks
|
|
CC=gcc
|
|
OWNER=root
|
|
GROUP=root
|
|
MANDIR=/usr/man/man8/symlinks.8
|
|
BINDIR=/usr/local/bin
|
|
|
|
all: symlinks
|
|
|
|
symlinks: symlinks.c
|
|
$(CC) -Wall -Wstrict-prototypes -O2 $(CFLAGS) -o symlinks symlinks.c
|
|
|
|
install: all symlinks.8
|
|
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 755 symlinks $(BINDIR)
|
|
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 644 symlinks.8 $(MANDIR)
|
|
|
|
clean:
|
|
rm -f symlinks *.o core
|