Skip to content

Commit

Permalink
- move installation-helper and systemd-helper to own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Sep 30, 2024
1 parent b6c23bc commit 3b7752f
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 39 deletions.
2 changes: 0 additions & 2 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
*.lo
*.la
snapper
systemd-helper
installation-helper
30 changes: 1 addition & 29 deletions client/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile.am for snapper/client
#

SUBDIRS = utils proxy mksubvolume
SUBDIRS = utils proxy mksubvolume installation-helper systemd-helper

AM_CPPFLAGS = -I$(top_srcdir) $(DBUS_CFLAGS)

Expand Down Expand Up @@ -42,31 +42,3 @@ snapper_LDADD = \
utils/libutils.la \
../dbus/libdbus.la \
$(JSON_C_LIBS)

libexecdir = /usr/lib/snapper

libexec_PROGRAMS = systemd-helper

systemd_helper_SOURCES = \
systemd-helper.cc \
cleanup.cc cleanup.h \
misc.cc misc.h

systemd_helper_LDADD = \
proxy/libproxy.la \
proxy/libclient.la \
../snapper/libsnapper.la \
utils/libutils.la \
../dbus/libdbus.la

if ENABLE_BTRFS

libexec_PROGRAMS += installation-helper

installation_helper_SOURCES = \
installation-helper.cc \
misc.cc misc.h

installation_helper_LDADD = ../snapper/libsnapper.la utils/libutils.la

endif
4 changes: 4 additions & 0 deletions client/installation-helper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.o
*.lo
*.la
installation-helper
19 changes: 19 additions & 0 deletions client/installation-helper/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Makefile.am for snapper/client/installation-helper
#

AM_CPPFLAGS = -I$(top_srcdir)

if ENABLE_BTRFS

libexec_PROGRAMS = installation-helper

installation_helper_SOURCES = \
installation-helper.cc \
../misc.cc ../misc.h

installation_helper_LDADD = \
../../snapper/libsnapper.la \
../utils/libutils.la

endif
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#include <snapper/PluginsImpl.h>
#include "snapper/Log.h"

#include "utils/GetOpts.h"
#include "../utils/GetOpts.h"

#include "misc.h"
#include "../misc.h"


using namespace snapper;
Expand Down
4 changes: 4 additions & 0 deletions client/systemd-helper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.o
*.lo
*.la
systemd-helper
21 changes: 21 additions & 0 deletions client/systemd-helper/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Makefile.am for snapper/client/systemd-helper
#

AM_CPPFLAGS = -I$(top_srcdir) $(DBUS_CFLAGS)

libexecdir = /usr/lib/snapper

libexec_PROGRAMS = systemd-helper

systemd_helper_SOURCES = \
systemd-helper.cc \
../cleanup.cc ../cleanup.h \
../misc.cc ../misc.h

systemd_helper_LDADD = \
../proxy/libproxy.la \
../proxy/libclient.la \
../../snapper/libsnapper.la \
../utils/libutils.la \
../../dbus/libdbus.la
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
#include <snapper/SystemCmd.h>
#include <snapper/SnapperDefines.h>

#include "utils/text.h"
#include "utils/GetOpts.h"
#include "proxy/proxy.h"
#include "proxy/errors.h"
#include "../utils/text.h"
#include "../utils/GetOpts.h"
#include "../proxy/proxy.h"
#include "../proxy/errors.h"

#include "cleanup.h"
#include "misc.h"
#include "../cleanup.h"
#include "../misc.h"


using namespace snapper;
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ AC_CONFIG_FILES([
client/utils/Makefile
client/proxy/Makefile
client/mksubvolume/Makefile
client/installation-helper/Makefile
client/systemd-helper/Makefile
scripts/Makefile
pam/Makefile
data/Makefile
Expand Down

0 comments on commit 3b7752f

Please sign in to comment.