diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2011-01-12 17:25:16 -0600 |
---|---|---|
committer | Amit Kucheria <amit.kucheria@verdurent.com> | 2011-01-12 17:25:16 -0600 |
commit | 807e4faf4de0d7b14f5cead2561665f9aa0f2470 (patch) | |
tree | 4357a3c4e7bfa9c2af4c102604492455b32e2d59 | |
parent | b85e5d56aff5f0521cee570f61b1d97db8cbe21e (diff) |
Makefile cleanup for debian packaging
- Use install rather than mkdir, cp, etc.
- Install to /usr/sbin
-rw-r--r-- | Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,4 +1,4 @@ -BINDIR=/usr/bin +BINDIR=/usr/sbin MANDIR=/usr/share/man/man8 WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int @@ -16,12 +16,9 @@ powerdebug: $(OBJS) powerdebug.h $(CC) ${CFLAGS} $(OBJS) -lncurses -o powerdebug install: powerdebug powerdebug.8.gz - mkdir -p ${DESTDIR}${BINDIR} - cp powerdebug ${DESTDIR}${BINDIR} - mkdir -p ${DESTDIR}${MANDIR} - cp powerdebug.8.gz ${DESTDIR}${MANDIR} - -All: install + install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR} + install -m 0755 powerdebug ${DESTDIR}${BINDIR} + install -m 0644 powerdebug.8.gz ${DESTDIR}${MANDIR} all: powerdebug powerdebug.8.gz |