synk

synchronize files between hosts
Log | Files | Refs | README | LICENSE

mkfile (729B)


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
<config.mk

synk: y.tab.o synk.o sha512.o
	$LD -o $target $prereq $LDFLAGS $LIBS

%.o: %.c synk.h
	$CC $CFLAGS -c $stem.c -o $stem.o

y.tab.c: parse.y
	$YACC $prereq

clean:V:
	rm -f *.o synk y.tab.c

install:V: synk synk.1 synk.conf.5
	mkdir -p ${DESTDIR}${PREFIX}/bin
	mkdir -p ${DESTDIR}${MANDIR}/man1
	mkdir -p ${DESTDIR}${MANDIR}/man5
	cp synk ${DESTDIR}${PREFIX}/bin/synk
	cp synk.1 ${DESTDIR}${MANDIR}/man1/synk.1
	cp synk.conf.5 ${DESTDIR}${MANDIR}/man5/synk.conf.5
	chmod 755 ${DESTDIR}${PREFIX}/bin/synk
	chmod 644 ${DESTDIR}${MANDIR}/man1/synk.1
	chmod 644 ${DESTDIR}${MANDIR}/man5/synk.conf.5

uninstall:V:
	rm ${DESTDIR}${PREFIX}/bin/synk
	rm ${DESTDIR}${MANDIR}/man1/synk.1
	rm ${DESTDIR}${MANDIR}/man5/synk.conf.5