From: Soeren Sandmann Date: Sun, 15 May 2005 14:25:02 +0000 (+0000) Subject: Do more-or-less what the automake manual suggests about foreign X-Git-Tag: sysprof-0.9~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=023c75d71add0c36150ae249db9665901573387a;p=platform%2Fupstream%2Fsysprof.git Do more-or-less what the automake manual suggests about foreign Sun May 15 10:24:09 2005 Soeren Sandmann * Makefile.am, module/Makefile: Do more-or-less what the automake manual suggests about foreign subdirectories. --- diff --git a/ChangeLog b/ChangeLog index 1fa70bc..cc2bd74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 15 10:24:09 2005 Soeren Sandmann + + * Makefile.am, module/Makefile: Do more-or-less what the automake + manual suggests about foreign subdirectories. + Sat May 14 16:36:32 2005 Søren Sandmann * sysprof.c (set_application_title): Update the title bar on diff --git a/Makefile.am b/Makefile.am index afc6322..0681d10 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,6 @@ +SUBDIRS = module +DIST_SUBDIRS = module + bin_PROGRAMS = sysprof pkgdata_DATA = sysprof.glade sysprof-icon.png @@ -12,7 +15,7 @@ sysprof_SOURCES = \ sfile.c \ stackstash.h \ stackstash.c \ - sysprof-module.h \ + module/sysprof-module.h \ sysprof.c \ treeviewutils.h \ treeviewutils.c \ @@ -31,20 +34,14 @@ INCLUDES = \ EXTRA_DIST = \ sysprof.glade \ - sysprof-icon.png + sysprof-icon.png \ + module/sysprof-module.c \ + module/sysprof-module.h \ + module/Makefile pixmapsdir = $(datadir)/pixmaps pixmaps_DATA = sysprof-icon.png -modulesdir = /lib/modules/`uname -r`/kernel/drivers -modules_DATA = module/sysprof-module.ko - -CLEANFILES = \ - module/sysprof-module.mod.c \ - module/sysprof-module.mod.h \ - module/sysprof-module.mod.o \ - module/sysprof-module.o \ - module/sysprof-module.ko - -module/sysprof-module.ko: - (cd module && $(MAKE)) +insert-module: + modprobe -r sysprof-module + modprobe sysprof-module diff --git a/TODO b/TODO index d350a55..321eefa 100644 --- a/TODO +++ b/TODO @@ -10,13 +10,12 @@ Before 1.0: - Consider expanding a few more levels of a new descendants tree * Build system - - need to run depmod on install - - add an "install-module" target - Find out what distributions it actually works on (ask for sucess/failure-stories in 0.9.x releases) Before 1.2: +- See if there is a way to make it distcheck - grep FIXME - not10 - translation should be hooked up - Consider adding "at least 5% inclusive cost" filter @@ -264,6 +263,10 @@ Later: DONE: +- Should do as suggested in the automake manual in the + chapter "when automake is not enough" +- add an "insert-module" target +- need to run depmod on install - If the current profile has a name, display it in the title bar - auto*? - Find out if that PREFIX business in Makefile was really such diff --git a/module/Makefile b/module/Makefile index 560e460..c87b078 100644 --- a/module/Makefile +++ b/module/Makefile @@ -31,4 +31,42 @@ endif $(MODULE).o: $(MODULE).c $(KMAKE) modules + +# Automake rules, as per "Third-Party Makefiles" in the automake manual + +all: $(MODULE).o + +distdir: + cp sysprof-module.c $(distdir) + cp sysprof-module.h $(distdir) + cp Makefile $(distdir) + +install: + $(KMAKE) modules_install + depmod + +install-data: +install-exec: +uninstall: + +install-info: +installdirs: +check: +installcheck: +mostlyclean: +clean: + rm -f sysprof-module.ko + rm -f sysprof-module.o + rm -f sysprof-module.mod.o + rm -f sysprof-module.mod.c +distclean: clean +maintainer-clean: +dvi: +pdf: +info: +html: +tags: +ctags: + endif + diff --git a/sysprof.glade b/sysprof.glade index 2155e4b..c68756e 100644 --- a/sysprof.glade +++ b/sysprof.glade @@ -47,7 +47,7 @@ - + True gtk-open 1 @@ -69,7 +69,7 @@ - + True gtk-save-as 1 @@ -97,7 +97,7 @@ - + True gtk-quit 1 @@ -126,12 +126,12 @@ True - S_tart + _Start True - + True gtk-media-play 1 @@ -152,7 +152,7 @@ - + True gtk-justify-left 1 @@ -173,7 +173,7 @@ - + True gtk-clear 1 @@ -207,7 +207,7 @@ - + True gtk-about 1