Skip to content
Snippets Groups Projects
Commit 1350abfe authored by gord-fig's avatar gord-fig
Browse files

Clean up extN patch and dist rules.

parent 3511b879
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,12 @@ EXTNP = htree-ext3-2.4.18.diff linux-2.4.18ea-0.8.26.diff ...@@ -12,10 +12,12 @@ EXTNP = htree-ext3-2.4.18.diff linux-2.4.18ea-0.8.26.diff
EXTNP+= ext3-2.4.18-ino_sb_macro.diff extN-misc-fixup.diff EXTNP+= ext3-2.4.18-ino_sb_macro.diff extN-misc-fixup.diff
EXTNC = balloc.c bitmap.c dir.c file.c fsync.c ialloc.c inode.c ioctl.c EXTNC = balloc.c bitmap.c dir.c file.c fsync.c ialloc.c inode.c ioctl.c
EXTNC+= namei.c super.c symlink.c EXTNC+= namei.c super.c symlink.c
EXTNI = extN_fs.h extN_fs_i.h extN_fs_sb.h extN_jbd.h EXTN_EXTRA = ../include/linux/xattr.h ../include/linux/extN_xattr.h \
EXTN_EXTRA = include/linux/xattr.h include/linux/extN_xattr.h fs/extN/xattr.c fs/extN/hash.c ../fs/extN/xattr.c ../fs/extN/hash.c ../include/linux/extN_fs.h \
extN_SOURCES = $(EXTNC) $(EXTNI) xattr.c # punch.c ../include/linux/extN_fs_i.h ../include/linux/extN_fs_sb.h \
extN_DEPENDENCIES = patch-stamp ../include/linux/extN_jbd.h
extN_SOURCES = $(EXTNC) xattr.c # punch.c
extN_DEPENDENCIES = patch-stamp $(EXTN_EXTRA)
EXTRA_DIST = $(EXTNP) extN-2.4.18-ino_sb_fixup.diff extN-2.4.18-exports.diff EXTRA_DIST = $(EXTNP) extN-2.4.18-ino_sb_fixup.diff extN-2.4.18-exports.diff
DISTCLEANFILES = $(extN_SOURCES) patch-stamp *.orig *.rej DISTCLEANFILES = $(extN_SOURCES) patch-stamp *.orig *.rej
SUB=-e "s/ext3/extN/g" -e "s/EXT3/EXTN/g" SUB=-e "s/ext3/extN/g" -e "s/EXT3/EXTN/g"
...@@ -38,7 +40,7 @@ patch-stamp: $(EXTNP) ...@@ -38,7 +40,7 @@ patch-stamp: $(EXTNP)
$(RM) $@ $(RM) $@
test -e $(top_srcdir)/fs || ln -sf . $(top_srcdir)/fs test -e $(top_srcdir)/fs || ln -sf . $(top_srcdir)/fs
set -vx;\ set -vx;\
list='$(EXTN_EXTRA)'; for f in $$list; do $(RM) $(top_srcdir)/$$f; done list='$(EXTN_EXTRA)'; for f in $$list; do $(RM) $(srcdir)/$$f; done
set -vx;\ set -vx;\
list='$(EXTNC)'; for f in $$list; do \ list='$(EXTNC)'; for f in $$list; do \
sed $(SUB) $(LINUX)/fs/ext3/$$f > $(top_srcdir)/fs/extN/$$f; \ sed $(SUB) $(LINUX)/fs/ext3/$$f > $(top_srcdir)/fs/extN/$$f; \
...@@ -68,7 +70,4 @@ $(extN_SOURCES) $(EXTN_EXTRA): patch-stamp ...@@ -68,7 +70,4 @@ $(extN_SOURCES) $(EXTN_EXTRA): patch-stamp
dist-hook: dist-hook:
$(RM) $(top_srcdir)/fs $(RM) $(top_srcdir)/fs
list='$(EXTNC)'; for f in $$list; do $(RM) $(distdir)/$$f; done list='$(EXTNC)'; for f in $$list; do $(RM) $(distdir)/$$f; done
list='$(EXTNI)'; for i in $$list; do \ list='$(EXTN_EXTRA)'; for f in $$list; do $(RM) $(distdir)/$$f; done
$(RM) $(distdir)/../include/linux/$$i; \
done
list='$(EXTN_EXTRA)'; for f in $$list; do $(RM) $(distdir)/../$$f; done
# lustre.spec # lustre.spec
%define version 0.5.3 %define version HEAD
%define kversion @RELEASE@ %define kversion @RELEASE@
%define linuxdir @LINUX@ %define linuxdir @LINUX@
%define portalsdir @PORTALS@ %define portalsdir @PORTALS@
Release: 2 Release: 0208101108
Summary: Lustre Lite File System Summary: Lustre Lite File System
Name: lustre-lite Name: lustre-lite
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment