chndlr

Personal fork of spm (simple password manager)
git clone git@nonplanar.org:chndlr.git
Log | Files | Refs | README | LICENSE

Makefile (517B)


      1 # chndlr - simple xdg-open replacement with fallback
      2 
      3 include config.mk
      4 
      5 SRC = chndlr.c
      6 OBJ = ${SRC:.c=.o}
      7 
      8 all: options chndlr
      9 
     10 options:
     11 	@echo chndlr build options:
     12 	@echo "CFLAGS   = ${CFLAGS}"
     13 	@echo "LDFLAGS  = ${LDFLAGS}"
     14 	@echo "CC       = ${CC}"
     15 
     16 .c.o:
     17 	${CC} -c ${CFLAGS} $<
     18 
     19 ${OBJ}: config.mk config.h
     20 
     21 chndlr: ${OBJ}
     22 	${CC} -o $@ ${OBJ} ${LDFLAGS}
     23 
     24 clean:
     25 	@echo cleaning
     26 	@rm -f chndlr ${OBJ}
     27 
     28 install: all
     29 	@cp -f chndlr /usr/bin/xdg-open
     30 	@chmod 755 /usr/bin/xdg-open
     31 
     32 uninstall:
     33 	-rm /usr/bin/xdg-open