File: Makefile

package info (click to toggle)
nrss 0.3.9-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 204 kB
  • ctags: 380
  • sloc: ansic: 2,603; makefile: 74
file content (37 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#This system type borrowed from dwm

include config.mk

VPATH += cnf

OBJ = args.o commands.o conf.o feeds.o filter.o interface.o \
	  interface_draw.o list.o log.o main.o parse.o reader.o system.o \
	  usage.o utility.o cnf.o cache.o keys.o

all: verbiage nrss

verbiage:
	@echo CFLAGS = ${CFLAGS}
	@echo LDFLAGS = ${LDFLAGS}

nrss: ${OBJ}
	@echo CC -o $@
	@${CC} -o $@ ${OBJ} ${LDFLAGS}

clean:
	@echo cleaning
	@rm -f *.o nrss

install: nrss
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f nrss ${DESTDIR}${PREFIX}/bin
	@chmod 755 ${DESTDIR}${PREFIX}/bin/nrss
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed "s/VERSION/${VERSION}/g" < nrss.1 > ${DESTDIR}${MANPREFIX}/man1/nrss.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/nrss.1

uninstall:
	@rm -f ${DESTDIR}${PREFIX}/bin/nrss
	@rm -f ${DESTDIR}${MANPREFIX}/man1/nrss.1

.PHONY: all clean install uninstall