xscreenshot

screen capture tool (mirror)
git clone git@git.2f30.org/xscreenshot.git
Log | Files | Refs | README | LICENSE

Makefile (1057B)


      1 include config.mk
      2 
      3 NAME = xscreenshot
      4 SRC = xscreenshot.c
      5 OBJ = ${SRC:.c=.o}
      6 
      7 all: xscreenshot
      8 
      9 options:
     10 	@echo ${NAME} build options:
     11 	@echo "CFLAGS   = ${CFLAGS}"
     12 	@echo "LDFLAGS  = ${LDFLAGS}"
     13 	@echo "CC       = ${CC}"
     14 
     15 .c.o:
     16 	${CC} -c ${CFLAGS} $<
     17 
     18 ${OBJ}: config.mk
     19 
     20 xscreenshot: xscreenshot.o
     21 	${CC} -o $@ xscreenshot.o ${LDFLAGS}
     22 
     23 clean:
     24 	rm -f xscreenshot ${OBJ}
     25 
     26 install: all
     27 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
     28 	@mkdir -p ${DESTDIR}${PREFIX}/bin
     29 	@cp -f xscreenshot ${DESTDIR}${PREFIX}/bin
     30 	@chmod 755 ${DESTDIR}${PREFIX}/bin/xscreenshot
     31 	@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
     32 	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
     33 	@cp -f xscreenshot.1 ${DESTDIR}${MANPREFIX}/man1
     34 	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/xscreenshot.1
     35 
     36 uninstall:
     37 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
     38 	@rm -f ${DESTDIR}${PREFIX}/bin/xscreenshot
     39 	@echo removing manual pages from ${DESTDIR}${MANPREFIX}/man1
     40 	@rm -f ${DESTDIR}${MANPREFIX}/man1/xscreenshot.1
     41 
     42 .PHONY: all options clean dist install uninstall