xhotplug

Run arbirary commands in response to newly connected X11 displays
git clone git://git.danielmoch.com/xhotplug.git
Log | Files | Refs | README | LICENSE

Makefile (745B)


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