Makefile in xhotplug

at master

1# See LICENSE file for copyright and license details
2.POSIX:
3
4include config.mk
5
6all: xhotplug
7
8.c.o:
9 ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $<
10
11xhotplug: ${OBJ}
12 ${CC} -o $@ ${OBJ} ${LDFLAGS}
13
14install: xhotplug
15 install -Dm755 xhotplug ${DESTDIR}${PREFIX}/bin/xhotplug
16 install -Dm644 xhotplug.1 ${DESTDIR}${MANPATH}/man1/xhotplug.1
17
18uninstall:
19 rm -f ${DESTDIR}${PREFIX}/bin/xhotplug
20 rm -f ${DESTDIR}${MANPATH}/man1/xhotplug.1
21
22clean:
23 rm -f *.o xhotplug
24
25dist:
26 rm -rf xhotplug-${VERSION}
27 mkdir xhotplug-${VERSION}
28 cp ${DIST_SRC} xhotplug-${VERSION}
29 tar -cf - xhotplug-${VERSION} | gzip > xhotplug-${VERSION}.tar.gz
30
31distclean:
32 rm -rf xhotplug-${VERSION}
33 rm -f xhotplug-${VERSION}.tar.gz
34
35.PHONY: all clean install uninstall dist distclean