Introduction
Introduction Statistics Contact Development Disclaimer Help
std.mk - 9base - revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log
Files
Refs
README
LICENSE
---
std.mk (801B)
---
1 # std.mk - included by most Makefiles in subdirs
2
3 OFILES ?= ${TARG}.o
4 MANFILE ?= ${TARG}.1
5
6 include ../config.mk
7
8 all: ${TARG}
9 # @strip ${TARG}
10 @echo built ${TARG}
11
12 install: install-default post-install
13
14 install-default: ${TARG}
15 @mkdir -p ${DESTDIR}${PREFIX}/bin
16 @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
17 @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
18 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
19 @cp -f ${MANFILE} ${DESTDIR}${MANPREFIX}/man1
20 @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILE}
21
22 uninstall: pre-uninstall
23 rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
24 rm -f ${DESTDIR}${MANPREFIX}/man1/${MANFILE}
25
26 .c.o:
27 @echo CC $*.c
28 @${CC} ${CFLAGS} -I../lib9 -I../lib9/sec $*.c
29
30 clean:
31 rm -f ${OFILES} ${TARG}
32
33 ${TARG}: ${OFILES}
34 @echo LD ${TARG}
35 @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L../lib9 -l9 -lm
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.