Add builddir
This commit is contained in:
parent
2f9090672a
commit
62c430b8d0
4
Makefile
4
Makefile
|
@ -16,7 +16,7 @@ ${OBJDIR}/%.o: %.c ${DEPS}
|
||||||
${CC} -c -o $@ $< ${CFLAGS}
|
${CC} -c -o $@ $< ${CFLAGS}
|
||||||
|
|
||||||
${app}: ${OBJ}
|
${app}: ${OBJ}
|
||||||
${CC} -o $@ $^ ${CFLAGS}
|
${CC} -o ${BUILDDIR}/$@ $^ ${CFLAGS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@unset -f rm
|
@unset -f rm
|
||||||
|
@ -24,7 +24,7 @@ clean:
|
||||||
|
|
||||||
install: rush
|
install: rush
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
cp -f ${app} ${DESTDIR}${PREFIX}/bin
|
cp -f ${BUILDDIR}/${app} ${DESTDIR}${PREFIX}/bin
|
||||||
chmod 755 ${DESTDIR}${PREFIX}/bin/${app}
|
chmod 755 ${DESTDIR}${PREFIX}/bin/${app}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
Loading…
Reference in New Issue