limestone

A KDE marble commandline interface.
git clone git://r-36.net/limestone
Log | Files | Refs | README | LICENSE

Makefile (1553B)


      1 # limestone - simple terminal
      2 # See LICENSE file for copyright and license details.
      3 
      4 include config.mk
      5 
      6 SRC = limestone.cpp
      7 OBJ = ${SRC:.cpp=.o}
      8 
      9 all: options limestone
     10 
     11 options:
     12 	@echo limestone build options:
     13 	@echo "CFLAGS   = ${CFLAGS}"
     14 	@echo "LDFLAGS  = ${LDFLAGS}"
     15 	@echo "CC       = ${CC}"
     16 
     17 config.h:
     18 	cp config.def.h config.h
     19 
     20 .cpp.o:
     21 	@echo CC $<
     22 	@${CC} -c ${CFLAGS} $<
     23 
     24 ${OBJ}: config.h config.mk
     25 
     26 limestone: ${OBJ}
     27 	@echo CC -o $@
     28 	@${CC} -o $@ ${OBJ} ${LDFLAGS}
     29 
     30 clean:
     31 	@echo cleaning
     32 	@rm -f limestone ${OBJ} limestone-${VERSION}.tar.gz
     33 
     34 dist: clean
     35 	@echo creating dist tarball
     36 	@mkdir -p limestone-${VERSION}
     37 	@cp -R LICENSE Makefile README.md config.mk config.def.h limestone.1 ${SRC} limestone-${VERSION}
     38 	@tar -cf limestone-${VERSION}.tar limestone-${VERSION}
     39 	@gzip limestone-${VERSION}.tar
     40 	@rm -rf limestone-${VERSION}
     41 
     42 install: all
     43 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
     44 	@mkdir -p ${DESTDIR}${PREFIX}/bin
     45 	@cp -f limestone ${DESTDIR}${PREFIX}/bin
     46 	@chmod 755 ${DESTDIR}${PREFIX}/bin/limestone
     47 	@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
     48 	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
     49 	@sed "s/VERSION/${VERSION}/g" < limestone.1 > ${DESTDIR}${MANPREFIX}/man1/limestone.1
     50 	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/limestone.1
     51 
     52 uninstall:
     53 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
     54 	@rm -f ${DESTIR}${PREFIX}/bin/limestone
     55 	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
     56 	@rm -f ${DESTDIR}${MANPREFIX}/man1/limestone.1
     57 
     58 .PHONY: all options clean dist install uninstall