Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - frsh - french command language interpreter
git clone git://bitreich.org/frsh git://hg6vgqziawt5s4dj.onion/frsh
Log
Files
Refs
Tags
README
---
Makefile (732B)
---
1 .POSIX:
2
3 NAME = frsh
4 VERSION = 0.1
5
6 # paths
7 PREFIX = /usr/local
8 MANPREFIX = ${PREFIX}/share/man
9
10 MAN1 = ${NAME}.1
11 BIN = ${NAME}
12
13 options:
14 @echo make targets:
15 @echo - test
16 @echo - install
17 @echo - uninstall
18
19 test: test.frsh
20 @if test "$$(./${BIN} test.frsh)" = "bonjour"; then \
21 echo parfait; \
22 else \
23 echo kaput; \
24 exit 1; \
25 fi
26
27 install:
28 mkdir -p ${DESTDIR}${PREFIX}/bin
29 cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
30 chmod 755 ${DESTDIR}${PREFIX}/bin/${BIN}
31 mkdir -p ${DESTDIR}${MANPREFIX}/man1
32 cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1/${MAN1}
33 chmod 644 ${DESTDIR}${MANPREFIX}/man1/${MAN1}
34
35 uninstall:
36 rm -f ${DESTDIR}${PREFIX}/bin/${BIN}
37 rm -f ${DESTDIR}${MANPREFIX}/man1/${MAN1}
38
39 .PHONY: options test install uninstall
You are viewing proxied material from bitreich.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.