Skip to content

Commit

Permalink
build: Use STORED_RESTYPES define for resource types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Aug 29, 2016
1 parent 89cf503 commit f2cfcd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stored/backends/Makefile.in
Expand Up @@ -61,6 +61,8 @@ BUILD_BACKENDS = @BUILD_SD_BACKENDS@

CONF_EXTRA_DIR = config.d

STORED_RESTYPES = autochanger device director ndmp messages storage

.SUFFIXES: .c .o .lo
.PHONY:
.DONTCARE:
Expand Down Expand Up @@ -182,7 +184,7 @@ install-config:
DESTCONFDIR=${DESTDIR}${confdir}/$$COMPONENT/; \
echo "installing configuration resource files to $$DESTCONFDIR"; \
$(MKDIR) $$DESTCONFDIR; \
for RESTYPE in autochanger device director ndmp messages storage; do \
for RESTYPE in $(STORED_RESTYPES); do \
for f in $$SRCCONFDIR/$$RESTYPE/*.conf $$SRCCONFDIR/$$RESTYPE/*.conf.example; do \
if test -e "$$f"; then \
RESDIR="$$DESTCONFDIR/$$RESTYPE"; \
Expand Down

0 comments on commit f2cfcd2

Please sign in to comment.