--- mt-st-1.1/Makefile.redhat 2008-03-01 11:50:12.000000000 +0100
+++ mt-st-1.1/Makefile 2008-08-04 08:20:01.000000000 +0200
@@ -1,8 +1,9 @@
-CFLAGS= -Wall -O2
-SBINDIR= /sbin
-BINDIR= /bin
-USRBINDIR= /usr/bin
-MANDIR= /usr/share/man
+CFLAGS= $(RPM_OPT_FLAGS)
+SBINDIR= $(RPM_BUILD_ROOT)/usr/sbin
+BINDIR= $(RPM_BUILD_ROOT)/usr/bin
+USRBINDIR= $(RPM_BUILD_ROOT)/usr/bin
+MANDIR= $(RPM_BUILD_ROOT)/usr/share/man
+CC=gcc
MTDIR=$(BINDIR)
@@ -15,11 +16,12 @@
$(CC) $(CFLAGS) -o stinit stinit.c
install: mt stinit
- install -s mt $(MTDIR)
+ mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
+ install -m 755 mt $(BINDIR)
install -c -m 444 mt.1 $(MANDIR)/man1
(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
- install -s stinit $(SBINDIR)
+ install -m 755 stinit $(SBINDIR)
install -c -m 444 stinit.8 $(MANDIR)/man8
(if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)