[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH] FreeMiNT distclean
Hello.
I noticed that in FreeMiNT, "make distclean" did not fully do the right
thing, here is a patch.
Now after "make distclean" the source tree is as clean as after a fresh
checkout.
I noticed that GENFILES and SGENFILES were used interchangeably, but I
couldn't clearly understand the difference between the two ones. So I
assumed that GENFILES was for the binaries and SGENFILES for generated
source files.
Alan, please commit!
distclean.patch
Fixed distclean target. Contributed by Vincent Riviere.
--
Vincent Rivière
diff -x CVS -aurN freemint.orig/sys/sockets/xif/Makefile freemint.work/sys/sockets/xif/Makefile
--- freemint.orig/sys/sockets/xif/Makefile 2010-01-04 23:22:12.000000000 +0100
+++ freemint.work/sys/sockets/xif/Makefile 2011-08-01 16:18:08.250000000 +0200
@@ -31,6 +31,7 @@
# default definitions
GENFILES = *.xif
+SGENFILES = rieblspc.c rieblspc_fast.c rieblmst.c rieblmst_fast.c rieblste.c riebltt.c rtl8012st.c
OBJS = $(addsuffix .o, $(basename $(notdir $(COBJS))))
diff -x CVS -aurN freemint.orig/sys/usb/src.km/Makefile freemint.work/sys/usb/src.km/Makefile
--- freemint.orig/sys/usb/src.km/Makefile 2011-08-01 16:25:59.484375000 +0200
+++ freemint.work/sys/usb/src.km/Makefile 2011-08-01 16:26:33.375000000 +0200
@@ -25,6 +25,7 @@
# default definitions
compile_all_dirs = .compile_*
GENFILES = $(compile_all_dirs) *.km
+SGENFILES = xversion.h
help:
diff -x CVS -aurN freemint.orig/sys/xdd/lp/Makefile freemint.work/sys/xdd/lp/Makefile
--- freemint.orig/sys/xdd/lp/Makefile 2011-05-25 10:54:28.000000000 +0200
+++ freemint.work/sys/xdd/lp/Makefile 2011-08-01 16:28:39.234375000 +0200
@@ -27,6 +27,7 @@
CPU = 000
# default definitions
+GENFILES = $(TARGET)
OBJS = $(COBJS:.c=.o) $(SOBJS:.S=.o)
$(TARGET): $(OBJS) $(LIBKERNTARGET)
diff -x CVS -aurN freemint.orig/sys/xdd/mfp/Makefile freemint.work/sys/xdd/mfp/Makefile
--- freemint.orig/sys/xdd/mfp/Makefile 2004-10-22 18:18:05.000000000 +0200
+++ freemint.work/sys/xdd/mfp/Makefile 2011-08-01 16:29:51.218750000 +0200
@@ -27,7 +27,8 @@
CPU = 000
# default definitions
-SGENFILES = mfp.xdd mfp_mil.xdd
+GENFILES = mfp.xdd mfp_mil.xdd
+SGENFILES = mfp_mil.c
OBJS = $(COBJS:.c=.o)
entry:
diff -x CVS -aurN freemint.orig/xaaes/src.km/Makefile freemint.work/xaaes/src.km/Makefile
--- freemint.orig/xaaes/src.km/Makefile 2011-07-15 08:51:25.000000000 +0200
+++ freemint.work/xaaes/src.km/Makefile 2011-08-01 16:32:15.265625000 +0200
@@ -22,6 +22,7 @@
# default definitions
compile_all_dirs = .compile_*
GENFILES = $(compile_all_dirs) *.km
+SGENFILES = xversion.h
help:
diff -x CVS -aurN freemint.orig/xaaes/src.km/adi/whlmoose/Makefile freemint.work/xaaes/src.km/adi/whlmoose/Makefile
--- freemint.orig/xaaes/src.km/adi/whlmoose/Makefile 2011-04-04 09:53:54.000000000 +0200
+++ freemint.work/xaaes/src.km/adi/whlmoose/Makefile 2011-08-01 16:31:25.937500000 +0200
@@ -27,7 +27,8 @@
CPU = 000
# default definitions
-SGENFILES = moose.adi moose_w.adi
+GENFILES = moose.adi moose_w.adi
+SGENFILES = whlmoose_w.c
OBJS = $(SOBJS:.S=.o)