From dfac97b21e00cd3617ba817227db7b621841b5cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 May 2010 19:09:22 +0200 Subject: [PATCH] build-sys: generate intermediate files in subdirs --- .gitignore | 16 ++++++---------- Makefile.am | 32 ++++++++++++++++++-------------- src/.gitignore | 3 +++ units/.gitignore | 2 ++ 4 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 src/.gitignore create mode 100644 units/.gitignore diff --git a/.gitignore b/.gitignore index b83dd9ac..4efd8247 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,19 @@ -*.5 -*.html -*~ -*.tar.gz test-ns test-loopback -systemd-initctl.service -systemd-logger.service systemd-cgroups-agent systemd-initctl systemd -*.o test-engine test-job-type systemd-logger systemctl -systemctl.c -systemd-interfaces.c systemadm -systemadm.c +.dirstamp +*.5 +*.html +*~ +*.tar.gz +*.o .deps/ Makefile.in aclocal.m4 diff --git a/Makefile.am b/Makefile.am index 0da02af0..35ecebaa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,10 +59,10 @@ noinst_PROGRAMS = \ test-loopback dist_dbuspolicy_DATA = \ - org.freedesktop.systemd1.conf + src/org.freedesktop.systemd1.conf dist_udevrules_DATA = \ - 99-systemd.rules + src/99-systemd.rules dist_systemunit_DATA = \ units/emergency.service \ @@ -70,8 +70,8 @@ dist_systemunit_DATA = \ units/systemd-logger.socket systemunit_DATA = \ - systemd-initctl.service \ - systemd-logger.service + units/systemd-initctl.service \ + units/systemd-logger.service EXTRA_DIST = \ units/systemd-initctl.service.in \ @@ -144,12 +144,12 @@ EXTRA_DIST += \ src/sd-daemon.h dist_man_MANS = \ - systemd.unit.5 \ - systemd.service.5 + man/systemd.unit.5 \ + man/systemd.service.5 HTMLMANS = \ - systemd.unit.html \ - systemd.service.html + man/systemd.unit.html \ + man/systemd.service.html dist_noinst_DATA = \ $(HTMLMANS) @@ -260,12 +260,14 @@ systemadm_SOURCES = \ systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(VALA_CFLAGS) systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS) -systemd-initctl.service: units/systemd-initctl.service.in Makefile +units/systemd-initctl.service: units/systemd-initctl.service.in Makefile + $(MKDIR_P) units $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \ -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \ < $< > $@ -systemd-logger.service: units/systemd-logger.service.in Makefile +units/systemd-logger.service: units/systemd-logger.service.in Makefile + $(MKDIR_P) units $(SED) -e 's,@libexecdir\@,$(libexecdir),g' \ -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \ < $< > $@ @@ -274,14 +276,16 @@ CLEANFILES = \ src/systemd-interfaces.c \ src/systemctl.c \ src/systemadm.c \ - systemd-initctl.service \ - systemd-logger.service + units/systemd-initctl.service \ + units/systemd-logger.service if HAVE_XSLTPROC -%.5: man/%.xml +man/%.5: man/%.xml + $(MKDIR_P) man $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< -%.html: man/%.xml +man/%.html: man/%.xml + $(MKDIR_P) man $(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< CLEANFILES += \ diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 00000000..954d7fe0 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,3 @@ +systemctl.c +systemd-interfaces.c +systemadm.c diff --git a/units/.gitignore b/units/.gitignore new file mode 100644 index 00000000..88895b63 --- /dev/null +++ b/units/.gitignore @@ -0,0 +1,2 @@ +systemd-initctl.service +systemd-logger.service -- 2.39.5