Browse files

Update GNUmakefile.orig

Standardize the makefile:

1. Preserve the timestamp.

2. 755/644 is the standard permission for executable/normal text files.
  • Loading branch information...
1 parent 4dd5b39 commit 2ec627c6e612e4c8fd479deb20228897d0e9649e @cicku cicku committed Nov 24, 2013
Showing with 10 additions and 10 deletions.
  1. +10 −10 GNUmakefile.orig
View
20 GNUmakefile.orig
@@ -25,21 +25,21 @@ max:
install:
ifdef RPM_BUILD_ROOT
- install -d ${DESTDIR}${PREFIX}/bin
- install -m 555 src/spar ${DESTDIR}${PREFIX}/bin/spar
- install -d ${DESTDIR}$(MANPREFIX)/man1
- install -m 555 src/spar.1 ${DESTDIR}${MANPREFIX}/man1/spar.1
+ install -pd ${DESTDIR}${PREFIX}/bin
+ install -pm0755 src/spar ${DESTDIR}${PREFIX}/bin/spar
+ install -pd ${DESTDIR}$(MANPREFIX)/man1
+ install -pm0644 src/spar.1 ${DESTDIR}${MANPREFIX}/man1/spar.1
else
- install -d ${PREFIX}/bin
- install -m 555 src/spar ${PREFIX}/bin/spar
- install -d $(MANPREFIX)/man/man1
- install -m 555 src/spar.1 ${MANPREFIX}/man/man1/spar.1
+ install -pd ${PREFIX}/bin
+ install -pm0755 src/spar ${PREFIX}/bin/spar
+ install -pd $(MANPREFIX)/man/man1
+ install -pm0644 src/spar.1 ${MANPREFIX}/man/man1/spar.1
endif
uninstall:
ifdef RPM_BUILD_ROOT
- rm ${DESTDIR}/${PREFIX}/bin/spar
- rm ${DESTDIR}/${MANPREFIX}/man1/spar.1
+ rm ${DESTDIR}${PREFIX}/bin/spar
+ rm ${DESTDIR}${MANPREFIX}/man1/spar.1
else
rm ${PREFIX}/bin/spar
rm ${MANPREFIX}/man/man1/spar.1

0 comments on commit 2ec627c

Please sign in to comment.