aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 05:30:12 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 10:28:40 +0200
commit6cf0a254cd9e4892a941bb5ad6f8d9ed317b1617 (patch)
treead9f1b409c5a465986078ee16b102f6fa6cfbdb3
parente148e873e05e4ebe4d7a90cdbe8cdd72618eb7ac (diff)
Build system and directory structure cleanup
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r--Makefile.am2
-rw-r--r--cmd/Makemodule.am15
-rw-r--r--cmd/service/disable.c (renamed from servicecmd/disable.c)0
-rw-r--r--cmd/service/dumpscript.c (renamed from servicecmd/dumpscript.c)0
-rw-r--r--cmd/service/enable.c (renamed from servicecmd/enable.c)0
-rw-r--r--cmd/service/help.c (renamed from servicecmd/help.c)0
-rw-r--r--cmd/service/list.c (renamed from servicecmd/list.c)0
-rw-r--r--cmd/service/servicecmd.c (renamed from servicecmd/servicecmd.c)0
-rw-r--r--cmd/service/servicecmd.h (renamed from servicecmd/servicecmd.h)0
-rw-r--r--scripts/Makemodule.am5
-rw-r--r--servicecmd/Makemodule.am13
11 files changed, 17 insertions, 18 deletions
diff --git a/Makefile.am b/Makefile.am
index 2323042..5f3823a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,13 +9,13 @@ EXTRA_DIST = README LICENSE
helperdir = @SCRIPTDIR@
helper_PROGRAMS =
+helper_SCRIPTS =
include lib/Makemodule.am
include cmd/Makemodule.am
include initd/Makemodule.am
include scripts/Makemodule.am
include services/Makemodule.am
-include servicecmd/Makemodule.am
install-data-local:
$(MKDIR_P) $(DESTDIR)$(SVCDIR)
diff --git a/cmd/Makemodule.am b/cmd/Makemodule.am
index 40c0933..f0ae3f9 100644
--- a/cmd/Makemodule.am
+++ b/cmd/Makemodule.am
@@ -15,5 +15,18 @@ killall5_CPPFLAGS = $(AM_CPPFLAGS)
killall5_CFLAGS = $(AM_CFLAGS)
killall5_LDFLAGS = $(AM_LDFLAGS)
-sbin_PROGRAMS += reboot shutdown
+SRVHEADERS = cmd/service/servicecmd.h
+
+service_SOURCES = cmd/service/servicecmd.c cmd/service/help.c
+service_SOURCES += cmd/service/enable.c cmd/service/disable.c
+service_SOURCES += cmd/service/dumpscript.c cmd/service/list.c
+service_SOURCES += $(SRVHEADERS)
+service_CPPFLAGS = $(AM_CPPFLAGS)
+service_CFLAGS = $(AM_CFLAGS)
+service_LDFLAGS = $(AM_LDFLAGS)
+service_LDADD = libinit.a
+
+EXTRA_DIST += $(SRVHEADERS)
+
+sbin_PROGRAMS += service reboot shutdown
helper_PROGRAMS += killall5
diff --git a/servicecmd/disable.c b/cmd/service/disable.c
index 8a6f9f3..8a6f9f3 100644
--- a/servicecmd/disable.c
+++ b/cmd/service/disable.c
diff --git a/servicecmd/dumpscript.c b/cmd/service/dumpscript.c
index 880631f..880631f 100644
--- a/servicecmd/dumpscript.c
+++ b/cmd/service/dumpscript.c
diff --git a/servicecmd/enable.c b/cmd/service/enable.c
index 5d4195e..5d4195e 100644
--- a/servicecmd/enable.c
+++ b/cmd/service/enable.c
diff --git a/servicecmd/help.c b/cmd/service/help.c
index 4fa9951..4fa9951 100644
--- a/servicecmd/help.c
+++ b/cmd/service/help.c
diff --git a/servicecmd/list.c b/cmd/service/list.c
index b9e342a..b9e342a 100644
--- a/servicecmd/list.c
+++ b/cmd/service/list.c
diff --git a/servicecmd/servicecmd.c b/cmd/service/servicecmd.c
index 84e6a32..84e6a32 100644
--- a/servicecmd/servicecmd.c
+++ b/cmd/service/servicecmd.c
diff --git a/servicecmd/servicecmd.h b/cmd/service/servicecmd.h
index b839799..b839799 100644
--- a/servicecmd/servicecmd.h
+++ b/cmd/service/servicecmd.h
diff --git a/scripts/Makemodule.am b/scripts/Makemodule.am
index 7ed5b10..6832788 100644
--- a/scripts/Makemodule.am
+++ b/scripts/Makemodule.am
@@ -1,6 +1,5 @@
-scriptdir = @SCRIPTDIR@
-script_SCRIPTS = scripts/devfs.sh scripts/trymount.sh
+helper_SCRIPTS += scripts/devfs.sh scripts/trymount.sh
if PYGOSCFG
-script_SCRIPTS += scripts/overlay.sh
+helper_SCRIPTS += scripts/overlay.sh
endif
diff --git a/servicecmd/Makemodule.am b/servicecmd/Makemodule.am
deleted file mode 100644
index 7b85e3f..0000000
--- a/servicecmd/Makemodule.am
+++ /dev/null
@@ -1,13 +0,0 @@
-SRVHEADERS = servicecmd/servicecmd.h
-
-service_SOURCES = servicecmd/servicecmd.c servicecmd/help.c servicecmd/list.c
-service_SOURCES += servicecmd/enable.c servicecmd/disable.c
-service_SOURCES += servicecmd/dumpscript.c $(SRVHEADERS)
-service_CPPFLAGS = $(AM_CPPFLAGS)
-service_CFLAGS = $(AM_CFLAGS)
-service_LDFLAGS = $(AM_LDFLAGS)
-service_LDADD = libinit.a
-
-EXTRA_DIST += $(SRVHEADERS)
-
-sbin_PROGRAMS += service