* [Cluster-devel] cluster/gfs2/fsck Makefile
@ 2006-06-28 14:05 rpeterso
0 siblings, 0 replies; 3+ messages in thread
From: rpeterso @ 2006-06-28 14:05 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-28 14:05:25
Modified files:
gfs2/fsck : Makefile
Log message:
Clean up .d files on Make clean rather than distclean
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
--- cluster/gfs2/fsck/Makefile 2006/06/12 20:41:43 1.4
+++ cluster/gfs2/fsck/Makefile 2006/06/28 14:05:25 1.5
@@ -40,13 +40,13 @@
test_bitmap: test_bitmap.o log.o
$(CC) $(CFLAGS) $^ -o $@
clean:
- @rm -f gfs2_fsck *.o *~
+ @rm -f gfs2_fsck *.o *~ *.d
copytobin: gfs2_fsck
cp gfs2_fsck ${top_srcdir}/bin
distclean: clean
- @rm -f *.d cscope.* gfs2_fsck test_inode_list *.orig *.rej test_block_list test_bitmap
+ @rm -f cscope.* gfs2_fsck test_inode_list *.orig *.rej test_block_list test_bitmap
gfs2_fsck.pot: $(sources)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cluster-devel] cluster/gfs2/fsck Makefile
@ 2007-09-11 18:31 rpeterso
0 siblings, 0 replies; 3+ messages in thread
From: rpeterso @ 2007-09-11 18:31 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL51
Changes by: rpeterso at sourceware.org 2007-09-11 18:31:25
Modified files:
gfs2/fsck : Makefile
Log message:
Resolves: bz 286211: gfs2_fsck not found by fsck wrapper.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.6.2.2&r2=1.6.2.2.2.1
--- cluster/gfs2/fsck/Makefile 2007/05/01 18:20:49 1.6.2.2
+++ cluster/gfs2/fsck/Makefile 2007/09/11 18:31:25 1.6.2.2.2.1
@@ -14,7 +14,8 @@
include ${top_srcdir}/make/defines.mk
-TARGET= gfs2_fsck
+TARGET1= fsck.gfs2
+TARGET2= gfs2_fsck
INCLUDES= -I${top_srcdir}/include -I${top_srcdir}/config -I${top_srcdir}/libgfs2 -I${KERNEL_SRC}/fs/gfs2/ -I${KERNEL_SRC}/include/
LIBS=${top_srcdir}/libgfs2
@@ -27,38 +28,43 @@
CFLAGS+=-D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\" -Wall -O2
-all: ${TARGET}
+all: depends ${TARGET1} ${TARGET2}
-gfs2_fsck: $(sources:.c=.o) $(LIBS)/libgfs2.a
+${TARGET1}: $(sources:.c=.o)
$(CC) $(CFLAGS) -L$(LIBS) $^ -o $@ -lgfs2
+${TARGET2}: ${TARGET1}
+ ln -f ${TARGET1} ${TARGET2}
+
%.o: %.c
$(CC) -MMD -c $(INCLUDES) $(CFLAGS) $< -o $@
+depends:
+ $(MAKE) -C ../libgfs2 all
test_block_list: log.o test_block_list.o
$(CC) $(CFLAGS) $^ -o $@
test_bitmap: test_bitmap.o log.o
$(CC) $(CFLAGS) $^ -o $@
+
clean:
- @rm -f gfs2_fsck *.o *~ *.d
+ rm -f ${TARGET1} ${TARGET2} *.o *~ *.d cscope.* test_inode_list *.orig *.rej test_block_list test_bitmap
install: all
if [ ! -d ${sbindir} ]; then \
install -d ${sbindir}; \
fi
- strip ${TARGET}
- install -m755 ${TARGET} ${sbindir}
+ install -m755 ${TARGET1} ${sbindir}
+ ln -f ${sbindir}/${TARGET1} ${sbindir}/${TARGET2}
distclean: clean
- @rm -f cscope.* gfs2_fsck test_inode_list *.orig *.rej test_block_list test_bitmap
+ @rm -f cscope.* {TARGET1} test_inode_list *.orig *.rej test_block_list test_bitmap
-gfs2_fsck.pot: $(sources)
+{TARGET1}.pot: $(sources)
@xgettext -C -F --keyword=print_log --keyword=log_debug --keyword=log_info --keyword=_ \
--keyword=log_notice --keyword=log_warn --keyword=log_err --keyword=log_crit \
- --keyword=log_debug --keyword=log_err --keyword=log_print -d - $(sources) > gfs2_fsck.pot
-
+ --keyword=log_debug --keyword=log_err --keyword=log_print -d - $(sources) > ${TARGET1}.pot
-include $(sources:.c=.d)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cluster-devel] cluster/gfs2/fsck Makefile
@ 2007-09-11 18:36 rpeterso
0 siblings, 0 replies; 3+ messages in thread
From: rpeterso @ 2007-09-11 18:36 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rpeterso at sourceware.org 2007-09-11 18:36:54
Modified files:
gfs2/fsck : Makefile
Log message:
Resolves: bz 286211: gfs2_fsck not found by fsck wrapper
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6.2.3&r2=1.6.2.4
--- cluster/gfs2/fsck/Makefile 2007/08/15 22:31:00 1.6.2.3
+++ cluster/gfs2/fsck/Makefile 2007/09/11 18:36:54 1.6.2.4
@@ -34,7 +34,7 @@
$(CC) $(CFLAGS) -L$(LIBS) $^ -o $@ -lgfs2
${TARGET2}: ${TARGET1}
- ln -fs ${TARGET1} ${TARGET2}
+ ln -f ${TARGET1} ${TARGET2}
%.o: %.c
$(CC) -MMD -c $(INCLUDES) $(CFLAGS) $< -o $@
@@ -56,7 +56,7 @@
install -d ${sbindir}; \
fi
install -m755 ${TARGET1} ${sbindir}
- ln -sf ${sbindir}/${TARGET1} ${sbindir}/${TARGET2}
+ ln -f ${sbindir}/${TARGET1} ${sbindir}/${TARGET2}
distclean: clean
@rm -f cscope.* {TARGET1} test_inode_list *.orig *.rej test_block_list test_bitmap
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-11 18:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11 18:36 [Cluster-devel] cluster/gfs2/fsck Makefile rpeterso
-- strict thread matches above, loose matches on Subject: below --
2007-09-11 18:31 rpeterso
2006-06-28 14:05 rpeterso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).