2001-12-03 16:37:14 +01:00
|
|
|
$NetBSD: patch-cj,v 1.2 2001/12/03 15:37:19 skrll Exp $
|
2001-10-16 00:45:55 +02:00
|
|
|
|
2001-12-03 16:37:14 +01:00
|
|
|
--- kmenuedit/Makefile.in.orig Sat Nov 10 07:58:28 2001
|
2001-10-16 00:45:55 +02:00
|
|
|
+++ kmenuedit/Makefile.in
|
2001-12-03 16:37:14 +01:00
|
|
|
@@ -276,17 +276,18 @@
|
|
|
|
INCLUDES = $(all_includes)
|
|
|
|
|
|
|
|
bin_PROGRAMS = kmenuedit
|
2001-10-16 00:45:55 +02:00
|
|
|
-lib_LTLIBRARIES = kmenuedit.la
|
|
|
|
+lib_LTLIBRARIES = libkmenuedit_main.la kmenuedit.la
|
2001-12-03 16:37:14 +01:00
|
|
|
|
2001-10-16 00:45:55 +02:00
|
|
|
-CLEANFILES = dummy.cpp
|
|
|
|
+libkmenuedit_main_la_SOURCES = namedlg.cpp basictab.cpp treeview.cpp desktopfileeditor.cpp menueditview.cpp kmenuedit.cpp main.cpp khotkeys.cpp
|
|
|
|
+libkmenuedit_main_la_LIBADD = $(LIB_KDEUI) $(LIB_KFILE)
|
|
|
|
+libkmenuedit_main_la_LDFLAGS = $(all_libraries)
|
2001-12-03 16:37:14 +01:00
|
|
|
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_la_SOURCES = namedlg.cpp basictab.cpp treeview.cpp desktopfileeditor.cpp menueditview.cpp kmenuedit.cpp main.cpp khotkeys.cpp
|
|
|
|
-
|
|
|
|
-kmenuedit_la_LIBADD = $(LIB_KDEUI) $(LIB_KFILE)
|
|
|
|
+kmenuedit_la_SOURCES = kmenuedit_main.cpp
|
|
|
|
+kmenuedit_la_LIBADD = libkmenuedit_main.la
|
2001-12-03 16:37:14 +01:00
|
|
|
kmenuedit_la_LDFLAGS = $(all_libraries) -module -avoid-version
|
|
|
|
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_SOURCES = dummy.cpp
|
|
|
|
-kmenuedit_LDADD = kmenuedit.la
|
|
|
|
+kmenuedit_SOURCES = kmenuedit_main.cpp
|
|
|
|
+kmenuedit_LDADD = libkmenuedit_main.la
|
2001-12-03 16:37:14 +01:00
|
|
|
kmenuedit_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
|
|
|
|
|
|
|
noinst_HEADERS = kmenuedit.h menueditview.h treeview.h desktopfileeditor.h basictab.h namedlg.h khotkeys.h
|
|
|
|
@@ -316,23 +317,27 @@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
X_CFLAGS = @X_CFLAGS@
|
|
|
|
X_LIBS = @X_LIBS@
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_la_DEPENDENCIES =
|
|
|
|
-#>- kmenuedit_la_OBJECTS = namedlg.lo basictab.lo treeview.lo \
|
|
|
|
+libkmenuedit_main_la_DEPENDENCIES =
|
|
|
|
+#>- libkmenuedit_main_la_OBJECTS = namedlg.lo basictab.lo treeview.lo \
|
2001-12-03 16:37:14 +01:00
|
|
|
#>- desktopfileeditor.lo menueditview.lo kmenuedit.lo main.lo khotkeys.lo
|
|
|
|
#>+ 6
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_la_final_OBJECTS = kmenuedit_la.all_cpp.lo
|
|
|
|
-kmenuedit_la_nofinal_OBJECTS = namedlg.lo basictab.lo treeview.lo \
|
|
|
|
+libkmenuedit_main_la_final_OBJECTS = libkmenuedit_main_la.all_cpp.lo
|
|
|
|
+libkmenuedit_main_la_nofinal_OBJECTS = namedlg.lo basictab.lo treeview.lo \
|
2001-12-03 16:37:14 +01:00
|
|
|
desktopfileeditor.lo menueditview.lo kmenuedit.lo main.lo khotkeys.lo \
|
|
|
|
- kmenuedit_la_meta_unload.lo
|
2001-10-16 00:45:55 +02:00
|
|
|
-@KDE_USE_FINAL_FALSE@kmenuedit_la_OBJECTS = $(kmenuedit_la_nofinal_OBJECTS)
|
|
|
|
-@KDE_USE_FINAL_TRUE@kmenuedit_la_OBJECTS = $(kmenuedit_la_final_OBJECTS)
|
2001-12-03 16:37:14 +01:00
|
|
|
+ libkmenuedit_main_la_meta_unload.lo
|
2001-10-16 00:45:55 +02:00
|
|
|
+@KDE_USE_FINAL_FALSE@libkmenuedit_main_la_OBJECTS = $(libkmenuedit_main_la_nofinal_OBJECTS)
|
|
|
|
+@KDE_USE_FINAL_TRUE@libkmenuedit_main_la_OBJECTS = $(libkmenuedit_main_la_final_OBJECTS)
|
|
|
|
+kmenuedit_la_DEPENDENCIES = libkmenuedit_main.la
|
|
|
|
+#>- kmenuedit_la_OBJECTS = kmenuedit_main.lo
|
|
|
|
+#>+ 1
|
|
|
|
+kmenuedit_la_OBJECTS = kmenuedit_main.lo
|
2001-12-03 16:37:14 +01:00
|
|
|
bin_PROGRAMS = kmenuedit$(EXEEXT)
|
|
|
|
PROGRAMS = $(bin_PROGRAMS)
|
|
|
|
|
2001-10-16 00:45:55 +02:00
|
|
|
-#>- kmenuedit_OBJECTS = dummy.$(OBJEXT)
|
|
|
|
+#>- kmenuedit_OBJECTS = kmenuedit_main.$(OBJEXT)
|
2001-12-03 16:37:14 +01:00
|
|
|
#>+ 1
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_OBJECTS = dummy.$(OBJEXT)
|
|
|
|
-kmenuedit_DEPENDENCIES = kmenuedit.la
|
|
|
|
+kmenuedit_OBJECTS = kmenuedit_main.$(OBJEXT)
|
|
|
|
+kmenuedit_DEPENDENCIES = libkmenuedit_main.la
|
2001-12-03 16:37:14 +01:00
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
#>- CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
|
|
|
#>+ 1
|
|
|
|
@@ -353,15 +358,15 @@
|
|
|
|
|
|
|
|
#>- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
|
|
|
#>+ 4
|
2001-10-16 00:45:55 +02:00
|
|
|
-KDE_DIST=kmenueditui.rc hi32-app-kmenuedit.png hi16-app-kmenuedit.png kmenuedit.desktop hi48-app-kmenuedit.png
|
|
|
|
+KDE_DIST=hi32-app-kmenuedit.png kmenuedit.desktop hi16-app-kmenuedit.png hi48-app-kmenuedit.png kmenueditui.rc
|
2001-12-03 16:37:14 +01:00
|
|
|
|
|
|
|
DISTFILES= $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
|
|
|
|
|
|
|
|
|
|
|
|
TAR = tar
|
|
|
|
GZIP_ENV = --best
|
2001-10-16 00:45:55 +02:00
|
|
|
-SOURCES = $(kmenuedit_la_SOURCES) $(kmenuedit_SOURCES)
|
|
|
|
-OBJECTS = $(kmenuedit_la_OBJECTS) $(kmenuedit_OBJECTS)
|
|
|
|
+SOURCES = $(libkmenuedit_main_la_SOURCES) $(kmenuedit_la_SOURCES) $(kmenuedit_SOURCES)
|
|
|
|
+OBJECTS = $(libkmenuedit_main_la_OBJECTS) $(kmenuedit_la_OBJECTS) $(kmenuedit_OBJECTS)
|
2001-12-03 16:37:14 +01:00
|
|
|
|
|
|
|
#>- all: all-redirect
|
|
|
|
#>+ 1
|
|
|
|
@@ -448,6 +453,9 @@
|
|
|
|
|
|
|
|
maintainer-clean-libtool:
|
|
|
|
|
2001-10-16 00:45:55 +02:00
|
|
|
+libkmenuedit_main.la: $(libkmenuedit_main_la_OBJECTS) $(libkmenuedit_main_la_DEPENDENCIES)
|
|
|
|
+ $(CXXLINK) -rpath $(libdir) $(libkmenuedit_main_la_LDFLAGS) $(libkmenuedit_main_la_OBJECTS) $(libkmenuedit_main_la_LIBADD) $(LIBS)
|
|
|
|
+
|
2001-12-03 16:37:14 +01:00
|
|
|
kmenuedit.la: $(kmenuedit_la_OBJECTS) $(kmenuedit_la_DEPENDENCIES)
|
|
|
|
$(CXXLINK) -rpath $(libdir) $(kmenuedit_la_LDFLAGS) $(kmenuedit_la_OBJECTS) $(kmenuedit_la_LIBADD) $(LIBS)
|
|
|
|
|
|
|
|
@@ -676,7 +684,6 @@
|
|
|
|
mostlyclean-generic:
|
|
|
|
|
|
|
|
clean-generic:
|
2001-10-16 00:45:55 +02:00
|
|
|
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
2001-12-03 16:37:14 +01:00
|
|
|
|
|
|
|
distclean-generic:
|
|
|
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
|
|
|
@@ -797,28 +804,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
#>+ 12
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_la_meta_unload.cpp: basictab.moc treeview.moc desktopfileeditor.moc menueditview.moc kmenuedit.moc
|
|
|
|
- @echo 'creating kmenuedit_la_meta_unload.cpp'
|
|
|
|
- @-rm -f kmenuedit_la_meta_unload.cpp
|
|
|
|
+libkmenuedit_main_la_meta_unload.cpp: basictab.moc treeview.moc desktopfileeditor.moc menueditview.moc kmenuedit.moc
|
|
|
|
+ @echo 'creating libkmenuedit_main_la_meta_unload.cpp'
|
|
|
|
+ @-rm -f libkmenuedit_main_la_meta_unload.cpp
|
2001-12-03 16:37:14 +01:00
|
|
|
@if test ${kde_qtver} = 2; then \
|
|
|
|
- echo 'static const char * _metalist_kmenuedit_la[] = {' > kmenuedit_la_meta_unload.cpp ;\
|
|
|
|
- cat basictab.moc treeview.moc desktopfileeditor.moc menueditview.moc kmenuedit.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> kmenuedit_la_meta_unload.cpp ;\
|
|
|
|
- echo '0};' >> kmenuedit_la_meta_unload.cpp ;\
|
|
|
|
- echo '#include <kunload.h>' >> kmenuedit_la_meta_unload.cpp ;\
|
|
|
|
- echo '_UNLOAD(kmenuedit_la)' >> kmenuedit_la_meta_unload.cpp ;\
|
|
|
|
- else echo > kmenuedit_la_meta_unload.cpp; fi
|
|
|
|
+ echo 'static const char * _metalist_libkmenuedit_main_la[] = {' > libkmenuedit_main_la_meta_unload.cpp ;\
|
|
|
|
+ cat basictab.moc treeview.moc desktopfileeditor.moc menueditview.moc kmenuedit.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> libkmenuedit_main_la_meta_unload.cpp ;\
|
|
|
|
+ echo '0};' >> libkmenuedit_main_la_meta_unload.cpp ;\
|
|
|
|
+ echo '#include <kunload.h>' >> libkmenuedit_main_la_meta_unload.cpp ;\
|
|
|
|
+ echo '_UNLOAD(libkmenuedit_main_la)' >> libkmenuedit_main_la_meta_unload.cpp ;\
|
|
|
|
+ else echo > libkmenuedit_main_la_meta_unload.cpp; fi
|
|
|
|
|
|
|
|
|
|
|
|
#>+ 3
|
|
|
|
clean-moc-classes:
|
2001-10-16 00:45:55 +02:00
|
|
|
- -rm -f kmenuedit_la_meta_unload.cpp
|
|
|
|
+ -rm -f libkmenuedit_main_la_meta_unload.cpp
|
|
|
|
+
|
|
|
|
+#>+ 11
|
|
|
|
+libkmenuedit_main_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/namedlg.cpp $(srcdir)/basictab.cpp $(srcdir)/treeview.cpp $(srcdir)/desktopfileeditor.cpp $(srcdir)/menueditview.cpp $(srcdir)/kmenuedit.cpp $(srcdir)/main.cpp $(srcdir)/khotkeys.cpp libkmenuedit_main_la_meta_unload.cpp basictab.moc treeview.moc menueditview.moc desktopfileeditor.moc kmenuedit.moc
|
|
|
|
+ @echo 'creating libkmenuedit_main_la.all_cpp.cpp ...'; \
|
|
|
|
+ rm -f libkmenuedit_main_la.all_cpp.files libkmenuedit_main_la.all_cpp.final; \
|
|
|
|
+ echo "#define KDE_USE_FINAL 1" >> libkmenuedit_main_la.all_cpp.final; \
|
|
|
|
+ for file in namedlg.cpp basictab.cpp treeview.cpp desktopfileeditor.cpp menueditview.cpp kmenuedit.cpp main.cpp khotkeys.cpp libkmenuedit_main_la_meta_unload.cpp ; do \
|
|
|
|
+ echo "#include \"$$file\"" >> libkmenuedit_main_la.all_cpp.files; \
|
|
|
|
+ test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libkmenuedit_main_la.all_cpp.final; \
|
|
|
|
+ done; \
|
|
|
|
+ cat libkmenuedit_main_la.all_cpp.final libkmenuedit_main_la.all_cpp.files > libkmenuedit_main_la.all_cpp.cpp; \
|
|
|
|
+ rm -f libkmenuedit_main_la.all_cpp.final libkmenuedit_main_la.all_cpp.files
|
2001-12-03 16:37:14 +01:00
|
|
|
|
|
|
|
#>+ 11
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/namedlg.cpp $(srcdir)/basictab.cpp $(srcdir)/treeview.cpp $(srcdir)/desktopfileeditor.cpp $(srcdir)/menueditview.cpp $(srcdir)/kmenuedit.cpp $(srcdir)/main.cpp $(srcdir)/khotkeys.cpp kmenuedit_la_meta_unload.cpp basictab.moc treeview.moc menueditview.moc desktopfileeditor.moc kmenuedit.moc
|
|
|
|
+kmenuedit_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kmenuedit_main.cpp
|
2001-12-03 16:37:14 +01:00
|
|
|
@echo 'creating kmenuedit_la.all_cpp.cpp ...'; \
|
|
|
|
rm -f kmenuedit_la.all_cpp.files kmenuedit_la.all_cpp.final; \
|
|
|
|
echo "#define KDE_USE_FINAL 1" >> kmenuedit_la.all_cpp.final; \
|
2001-10-16 00:45:55 +02:00
|
|
|
- for file in namedlg.cpp basictab.cpp treeview.cpp desktopfileeditor.cpp menueditview.cpp kmenuedit.cpp main.cpp khotkeys.cpp kmenuedit_la_meta_unload.cpp ; do \
|
|
|
|
+ for file in kmenuedit_main.cpp ; do \
|
2001-12-03 16:37:14 +01:00
|
|
|
echo "#include \"$$file\"" >> kmenuedit_la.all_cpp.files; \
|
|
|
|
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kmenuedit_la.all_cpp.final; \
|
|
|
|
done; \
|
|
|
|
@@ -826,11 +845,11 @@
|
|
|
|
rm -f kmenuedit_la.all_cpp.final kmenuedit_la.all_cpp.files
|
|
|
|
|
|
|
|
#>+ 11
|
2001-10-16 00:45:55 +02:00
|
|
|
-kmenuedit.all_cpp.cpp: $(srcdir)/Makefile.in dummy.cpp
|
|
|
|
+kmenuedit.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kmenuedit_main.cpp
|
2001-12-03 16:37:14 +01:00
|
|
|
@echo 'creating kmenuedit.all_cpp.cpp ...'; \
|
|
|
|
rm -f kmenuedit.all_cpp.files kmenuedit.all_cpp.final; \
|
|
|
|
echo "#define KDE_USE_FINAL 1" >> kmenuedit.all_cpp.final; \
|
2001-10-16 00:45:55 +02:00
|
|
|
- for file in dummy.cpp ; do \
|
|
|
|
+ for file in kmenuedit_main.cpp ; do \
|
2001-12-03 16:37:14 +01:00
|
|
|
echo "#include \"$$file\"" >> kmenuedit.all_cpp.files; \
|
|
|
|
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kmenuedit.all_cpp.final; \
|
|
|
|
done; \
|
|
|
|
@@ -839,20 +858,20 @@
|
|
|
|
|
|
|
|
#>+ 3
|
|
|
|
clean-final:
|
2001-10-16 00:45:55 +02:00
|
|
|
- -rm -f kmenuedit_la.all_cpp.cpp kmenuedit.all_cpp.cpp
|
|
|
|
+ -rm -f libkmenuedit_main_la.all_cpp.cpp kmenuedit_la.all_cpp.cpp kmenuedit.all_cpp.cpp
|
2001-12-03 16:37:14 +01:00
|
|
|
|
|
|
|
#>+ 2
|
|
|
|
final:
|
2001-10-16 00:45:55 +02:00
|
|
|
- $(MAKE) kmenuedit_la_OBJECTS="$(kmenuedit_la_final_OBJECTS)" all-am
|
|
|
|
+ $(MAKE) libkmenuedit_main_la_OBJECTS="$(libkmenuedit_main_la_final_OBJECTS)" all-am
|
2001-12-03 16:37:14 +01:00
|
|
|
#>+ 2
|
|
|
|
final-install:
|
|
|
|
- $(MAKE) kmenuedit_la_OBJECTS="$(kmenuedit_la_final_OBJECTS)" install-am
|
|
|
|
+ $(MAKE) libkmenuedit_main_la_OBJECTS="$(libkmenuedit_main_la_final_OBJECTS)" install-am
|
|
|
|
#>+ 2
|
|
|
|
no-final:
|
2001-10-16 00:45:55 +02:00
|
|
|
- $(MAKE) kmenuedit_la_OBJECTS="$(kmenuedit_la_nofinal_OBJECTS)" all-am
|
|
|
|
+ $(MAKE) libkmenuedit_main_la_OBJECTS="$(libkmenuedit_main_la_nofinal_OBJECTS)" all-am
|
2001-12-03 16:37:14 +01:00
|
|
|
#>+ 2
|
|
|
|
no-final-install:
|
|
|
|
- $(MAKE) kmenuedit_la_OBJECTS="$(kmenuedit_la_nofinal_OBJECTS)" install-am
|
|
|
|
+ $(MAKE) libkmenuedit_main_la_OBJECTS="$(libkmenuedit_main_la_nofinal_OBJECTS)" install-am
|
|
|
|
#>+ 3
|
|
|
|
cvs-clean:
|
|
|
|
$(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean
|