-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (23 loc) · 866 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
APP=stylom
VERSION=1.00
RELEASE=1
ARCH_TYPE=`uname -m`
all:
gcc -Wall -std=gnu99 -pedantic -O3 -o ${APP} src/*.c -Isrc -lm
debug:
gcc -Wall -std=gnu99 -pedantic -g -o ${APP} src/*.c -Isrc -lm
source:
tar -cvzf ../${APP}_${VERSION}.orig.tar.gz ../${APP}-${VERSION} --exclude-vcs
install:
mkdir -p ${DESTDIR}/usr
mkdir -p ${DESTDIR}/usr/bin
install -m 755 --strip ${APP} ${DESTDIR}/usr/bin
mkdir -m 755 -p ${DESTDIR}/usr/share
mkdir -m 755 -p ${DESTDIR}/usr/share/man
mkdir -m 755 -p ${DESTDIR}/usr/share/man/man1
install -m 644 man/${APP}.1.gz ${DESTDIR}/usr/share/man/man1
clean:
rm -f ${APP} \#* \.#* gnuplot* *.png debian/*.substvars debian/*.log
rm -fr deb.* debian/$(APP) rpmpackage/${ARCH_TYPE}
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc
rm -f rpmpackage/*.src.rpm archpackage/*.gz puppypackage/*.gz puppypackage/*.pet