grabc

Tool to identify pixel colors on X
git clone https://git.sinitax.com/muquit/grabc
Log | Files | Refs | README | Upstream | sfeed.txt

Makefile (1177B)


      1##
      2# Makefile automatically generated by genmake 1.0, Mar-16-97
      3# genmake 1.0 by ma_muquit@fccc.edu, RCS
      4##
      5CC= cc
      6DEFS=  
      7PROGNAME= grabc
      8LIBS= -L/usr/X11R6/lib -lX11
      9
     10INCLUDES=  -I.
     11cp=/bin/cp -fv
     12DESTDIR = 
     13binary=./grabc
     14manpage=./grabc.1
     15bindir=/usr/local/bin
     16mandir=/usr/local/share/man/man1
     17
     18# replace -O with -g in order to debug
     19
     20DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
     21CFLAGS= -O $(DEFINES)
     22
     23SRCS = grabc.c
     24
     25OBJS = grabc.o
     26
     27.c.o:
     28	rm -f $@
     29	$(CC) $(CFLAGS) -c $*.c
     30
     31all: $(PROGNAME)
     32
     33$(PROGNAME) : $(OBJS)
     34	$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
     35
     36doc:
     37	pod2man grabc.pod > grabc.1
     38
     39install: installdirs install-bin install-man
     40
     41install-bin:
     42	${cp} ${binary} ${DESTDIR}${bindir}
     43
     44installdirs:
     45	$(SHELL) ./mkinstalldirs ${DESTDIR}${bindir}
     46	$(SHELL) ./mkinstalldirs ${DESTDIR}${mandir}
     47
     48install-man:
     49	${cp} ${manpage} ${DESTDIR}${mandir}
     50
     51deb:
     52	/bin/rm -f *.deb
     53	/bin/rm -rf /tmp/grabc
     54	make DESTDIR=/tmp/grabc install
     55	fpm -s dir -t deb -C /tmp/grabc --name grabc --version 1.0.2 --iteration 1 --description "A program to id entify a pixel color on an X Window"
     56	/bin/rm -rf /tmp/grabc
     57clean:
     58	rm -f $(OBJS) $(PROGNAME) core *.deb