Skip to contentSkip to conversation

patch makefiles

PATCH Carsten Grohmann 1 participant 1 message Feb 15, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I start to build new rpms for SuSE this days. Thru this, I found two little "problems" with non existent man page directories, if anybody don't use the install sequence from the readme file. The attached patch fix the problem.

Carsten

Index: setfiles/Makefile
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/setfiles/Makefile,v retrieving revision 1.2

Makefile +1 -0
diff -u -r1.2 Makefile
@@ -9,6 +9,7 @@
 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
 
 install: setfiles
+	[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
 	install -m 755 setfiles $(BINDIR)
 	install -m 644 -o root -g root setfiles.8 $(MANDIR)/man8
 

Index: utils/run_init/Makefile
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux/utils/run_init/Makefile,v retrieving revision 1.3

run_init/Makefile +2 -0
diff -u -r1.3 Makefile
@@ -42,6 +42,8 @@
 	$(CC) $(LDFLAGS) $(CFLAGS) -o run_init run_init.c $(LIBFLAGS)
 
 install : all
+	[ -d $(DESTDIR) ] || mkdir -p $(DESTDIR)
+	[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
 	install -m 555 -o root -g root $(PROGS) $(DESTDIR)
 	install -m 644 -o root -g root run_init.8 $(MANDIR)/man8/
 	if [ -d /etc/pam.d ]; then \